diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2008-07-01 19:57:19 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-01 19:57:19 -0700 |
commit | 93b3cff9915322d6fa36bac0064714a7076230e4 (patch) | |
tree | f17f0fd69b2c5c930b29f5e40b214d6a458cbbfc /drivers | |
parent | 8fde8a076940969d32805b853efdce8b988d7dda (diff) | |
download | kernel_samsung_smdk4412-93b3cff9915322d6fa36bac0064714a7076230e4.zip kernel_samsung_smdk4412-93b3cff9915322d6fa36bac0064714a7076230e4.tar.gz kernel_samsung_smdk4412-93b3cff9915322d6fa36bac0064714a7076230e4.tar.bz2 |
netdevice: Fix wrong string handle in kernel command line parsing
v1->v2: Use strlcpy() to ensure s[i].name be null-termination.
1. In netdev_boot_setup_add(), a long name will leak.
ex. : dev=21,0x1234,0x1234,0x2345,eth123456789verylongname.........
2. In netdev_boot_setup_check(), mismatch will happen if s[i].name
is a substring of dev->name.
ex. : dev=...eth1 dev=...eth11
[ With feedback from Ben Hutchings. ]
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions