SCSI: bfa: Chinook quad port 16G FC HBA claim issue
authorVijaya Mohan Guvva <vmohan@brocade.com>
Wed, 4 Dec 2013 13:43:58 +0000 (05:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:05:48 +0000 (11:05 -0800)
commitbce4e9bf144e6394b61d1b275a720d76e2bc4b1a
tree7f75ea9c7baccd5a94f9ca0c500e62056c09ac21
parent7af4a2da7aaca5f5a0e97fec4050cd8a3c59ebcd
SCSI: bfa: Chinook quad port 16G FC HBA claim issue

commit dcaf9aed995c2b2a49fb86bbbcfa2f92c797ab5d upstream.

Bfa driver crash is observed while pushing the firmware on to chinook
quad port card due to uninitialized bfi_image_ct2 access which gets
initialized only for CT2 ASIC based cards after request_firmware().
For quard port chinook (CT2 ASIC based), bfi_image_ct2 is not getting
initialized as there is no check for chinook PCI device ID before
request_firmware and instead bfi_image_cb is initialized as it is the
default case for card type check.

This patch includes changes to read the right firmware for quad port chinook.

Signed-off-by: Vijaya Mohan Guvva <vmohan@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/bfa/bfad.c