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)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 14 Mar 2016 19:50:11 +0000 (15:50 -0400)
commita41b2efb134bdeefe8c27fa77ffaaef0b974c390
tree9f8b7e6c87078516d910d415785469d1f523a5ff
parentf4327a95dd080ed6aecb185478a88ce1ee4fa3c4
be2iscsi: set the boot_kset pointer to NULL in case of failure

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.

Cc: <stable@vger.kernel.org>
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>
drivers/scsi/be2iscsi/be_main.c