vport: Better handle too-long network device names in vport_del().
authorBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 19:41:11 +0000 (12:41 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 27 Apr 2010 19:41:11 +0000 (12:41 -0700)
commit21291d67574ae857d028c40b2fcc1116b6be6dfa
treeef901ed736853f7a957d6fef813ce4a8a0b7ef64
parent968f7c8d772e704ff96bd2923d474c7f969c7c6b
vport: Better handle too-long network device names in vport_del().

The 'count' argument to strncpy_from_user() is supposed to include space
for the null terminator, so add it in.  Also, refuse names that have more
than IFNAMSIZ-1 characters outright, instead of truncating them.
datapath/vport.c