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)
commit65bc0aaa9c2aa691e313a92250463008fb63266d
tree7c329d7b470a78b7997ced503facf621edda7737
parent8522851e3bc1b2198ec0e7eb48694ae326dc6840
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