]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitf4deedb908f7a37d26cc3b1072fa201f2d3c1037
tree6f1d4347dba9ca493f71a44093cc8152d9aa126a
parentcb36119595d4f4e340ecbe8c19a606debc34d751
[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