mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
The "info->fs.location" is a u32 that comes from the user via the
ethtool_set_rxnfc() function. We need to check for invalid values to
prevent a buffer overflow.
I copy and pasted this check from the mvpp2_ethtool_cls_rule_ins()
function.
Fixes:
|
||
|---|---|---|
| .. | ||
| Makefile | ||
| mvpp2_cls.c | ||
| mvpp2_cls.h | ||
| mvpp2_debugfs.c | ||
| mvpp2_main.c | ||
| mvpp2_prs.c | ||
| mvpp2_prs.h | ||
| mvpp2.h | ||