]> www.infradead.org Git - users/jedix/linux-maple.git/commit
SCSI: megaraid_sas: Move poll_aen_lock initializer
authorKashyap Desai <Kashyap.Desai@lsi.com>
Wed, 18 Jul 2012 01:20:44 +0000 (18:20 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 8 Oct 2012 10:53:05 +0000 (03:53 -0700)
commitbca316e92f785807a3793ae093496f7d04c5950f
tree7de7577e392556acc78f6ad24898d20c4bbdf775
parenta562a3bc6569a119c5317dc6d3d8de9a3830bdb7
SCSI: megaraid_sas: Move poll_aen_lock initializer

commit bd8d6dd43a77bfd2b8fef5b094b9d6095e169dee upstream.

The following patch moves the poll_aen_lock initializer from
megasas_probe_one() to megasas_init().  This prevents a crash when a user
loads the driver and tries to issue a poll() system call on the ioctl
interface with no adapters present.

Signed-off-by: Kashyap Desai <Kashyap.Desai@lsi.com>
Signed-off-by: Adam Radford <aradford@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/megaraid/megaraid_sas_base.c