From: Kashyap Desai Date: Wed, 18 Jul 2012 01:20:44 +0000 (-0700) Subject: megaraid_sas: Move poll_aen_lock initializer X-Git-Tag: v3.2.30~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb225ce36716c46b10c68ab25c9f8c97563bd895;p=pandora-kernel.git 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 Signed-off-by: Adam Radford Signed-off-by: James Bottomley Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed