From: Wang Chen Date: Wed, 2 Jul 2008 02:57:19 +0000 (-0700) Subject: netdevice: Fix wrong string handle in kernel command line parsing X-Git-Tag: v2.6.26-rc9~84^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93b3cff9915322d6fa36bac0064714a7076230e4;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed