[SCSI] lpfc: fix potential NULL pointer dereference in lpfc_sli4_rq_put()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sun, 2 Dec 2012 13:33:24 +0000 (08:33 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 11 Apr 2013 21:17:15 +0000 (14:17 -0700)
commit5a25bf36b7394f11f2ff90c9e203639cd3dc041a
tree6f1d4347dba9ca493f71a44093cc8152d9aa126a
parentd4a2618fa77b5e58ec15342972bd3505a1c3f551
[SCSI] lpfc: fix potential NULL pointer dereference in lpfc_sli4_rq_put()

The dereference to 'put_index' should be moved below the NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/lpfc/lpfc_sli.c