megaraid_sas: Move poll_aen_lock initializer
authorKashyap Desai <Kashyap.Desai@lsi.com>
Wed, 18 Jul 2012 01:20:44 +0000 (18:20 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Sep 2012 14:04:28 +0000 (15:04 +0100)
commitfb225ce36716c46b10c68ab25c9f8c97563bd895
treef802053d7cd7cde48ec69ed6265d6096041caac7
parentf64c045ad2f37a56f2c9ab9cfe662b2e797bb37e
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: Ben Hutchings <ben@decadent.org.uk>
drivers/scsi/megaraid/megaraid_sas_base.c