diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-06-27 10:59:58 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-07-20 09:58:37 +0200 |
commit | a5254dbb17dd22999f808e646780c32858a3eafa (patch) | |
tree | 9d45b698d14a26d2c9b46973225c93e471f74429 /drivers/scsi/megaraid.c | |
parent | [SCSI] bfa: off by one in bfa_ioc_mbox_isr() (diff) | |
download | linux-a5254dbb17dd22999f808e646780c32858a3eafa.tar.xz linux-a5254dbb17dd22999f808e646780c32858a3eafa.zip |
[SCSI] bfa: dereferencing freed memory in bfad_im_probe()
If bfad_thread_workq(bfad) was not BFA_STATUS_OK then we freed "im"
and then dereferenced it.
I did a little clean up because it seemed nicer to return directly
instead of doing a superfluous goto. I looked at other functions in
this file and it seems like returning directly is standard.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/megaraid.c')
0 files changed, 0 insertions, 0 deletions