kni: guard against unterminated name oops
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Tue, 13 Dec 2016 01:08:19 +0000 (02:08 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 29 Jan 2017 21:50:28 +0000 (22:50 +0100)
commitd613f57dd02936bd916007d6506253b6bc31c684
treebcdadac5359cae022ab201b8c3d58c5b60e21720
parent4d0db6df1ce7118c5184bba8e9e3f13d91f889b2
kni: guard against unterminated name oops

If the name is too long, it triggers BUG in alloc_netdev().

Signed-off-by: Michał Mirosław <michal.miroslaw@atendesoftware.pl>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/kni_misc.c