summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2012-07-30 21:40:03 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2012-07-31 00:25:13 (GMT)
commitb57b44ae698944ffc6161352b8ff5c9cf9c592e2 (patch)
tree15d8d4c9681c2cba7c882f29b1b4f88378928095 /drivers/misc
parent45226e944ce071d0231949f2fea90969437cd2dc (diff)
downloadlinux-b57b44ae698944ffc6161352b8ff5c9cf9c592e2.tar.xz
kernel/sys.c: avoid argv_free(NULL)
If argv_split() failed, the code will end up calling argv_free(NULL). Fix it up and clean things up a bit. Addresses Coverity report 703573. Cc: Cyrill Gorcunov <gorcunov@openvz.org> Cc: Kees Cook <keescook@chromium.org> Cc: Serge Hallyn <serge.hallyn@canonical.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: WANG Cong <xiyou.wangcong@gmail.com> Cc: Alan Cox <alan@linux.intel.com> Cc: David Rientjes <rientjes@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions