]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
be2iscsi: set the boot_kset pointer to NULL in case of failure
authorMaurizio Lombardi <mlombard@redhat.com>
Fri, 4 Mar 2016 09:41:49 +0000 (10:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:39 +0000 (09:08 -0700)
commite760edfb7ba763e48b870025ab0b5edb4af85089
treefc3b9a309653902639350e94e0bb64fc1ec76a68
parentc1f327046b17e6d9fac9bc61e23bcb1897c2d9b3
be2iscsi: set the boot_kset pointer to NULL in case of failure

commit 84bd64993f916bcf86270c67686ecf4cea7b8933 upstream.

In beiscsi_setup_boot_info(), the boot_kset pointer should be set to
NULL in case of failure otherwise an invalid pointer dereference may
occur later.

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/be2iscsi/be_main.c