aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-01-16 10:46:16 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-18 14:14:14 +0100
commite25df7812c91f62581301f9a7ac102acf92e4937 (patch)
tree6e5615c058f1384c5772c7d5ec2ef194f0764d73 /drivers/char
parentbinderfs: fix error return code in binderfs_fill_super() (diff)
downloadlinux-dev-e25df7812c91f62581301f9a7ac102acf92e4937.tar.xz
linux-dev-e25df7812c91f62581301f9a7ac102acf92e4937.zip
misc: ibmvsm: Fix potential NULL pointer dereference
There is a potential NULL pointer dereference in case kzalloc() fails and returns NULL. Fix this by adding a NULL check on *session* Also, update the function header with information about the expected return on failure and remove unnecessary variable rc. This issue was detected with the help of Coccinelle. Fixes: 0eca353e7ae7 ("misc: IBM Virtual Management Channel Driver (VMC)") Cc: stable@vger.kernel.org Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions