]> git.baikalelectronics.ru Git - kernel.git/commit
staging: slicoss: fix use-after-free in slic_entry_probe
authorDavid Matlack <dmatlack@google.com>
Tue, 6 May 2014 04:02:31 +0000 (21:02 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 11:08:33 +0000 (20:08 +0900)
commitebd94850b3ece223bf1f84fd8114c53da5e89a23
tree7c329d7b470a78b7997ced503facf621edda7737
parentc76bc729e7b1e8ba9a13fa20c64d25a6870c9156
staging: slicoss: fix use-after-free in slic_entry_probe

This patch fixes a use-after-free bug that can cause a kernel
oops. If slic_card_init fails then slic_entry_probe (the pci
probe() function for this device) will return error without
cleaning up memory.

Signed-off-by: David Matlack <dmatlack@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c