Files
linux/drivers/misc
Gustavo A. R. Silva 0479bdbf55 misc: ibmvsm: Fix potential NULL pointer dereference
commit e25df7812c upstream.

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: 0eca353e7a ("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>
2019-01-31 08:14:35 +01:00
..
2017-11-15 18:21:04 -08:00
2018-08-21 23:54:18 -04:00
2019-01-13 09:51:10 +01:00
2017-08-28 16:55:48 +02:00
2018-04-23 13:31:27 +02:00