From: Dan Carpenter Date: Fri, 31 Oct 2014 10:40:39 +0000 (+0300) Subject: staging: r8188eu: get a string from the user correctly X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~482 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0915b2255bfbdd537fd6a52f9a0a7037ecbe2d5;p=pandora-kernel.git staging: r8188eu: get a string from the user correctly The original code had two bugs: 1) It didn't check if the string was zero length so it could oops when it tried to dereference the ZERO_SIZE_PTR. 2) It didn't enforce that the string was NUL terminated. It was also messy as pants. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed