From: Dan Carpenter Date: Wed, 27 Jun 2012 08:59:58 +0000 (+0300) Subject: [SCSI] bfa: dereferencing freed memory in bfad_im_probe() X-Git-Tag: v3.6-rc1~103^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5254dbb17dd22999f808e646780c32858a3eafa;p=pandora-kernel.git [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 Acked-by: Krishna Gudipati Signed-off-by: James Bottomley --- Reading git-diff-tree failed