From: Mike Christie Date: Wed, 16 Feb 2011 21:04:39 +0000 (-0600) Subject: [SCSI] bnx2i: fix null ptr ref in conn get param X-Git-Tag: v2.6.39-rc1~440^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8585bcd7da071f4278710f1c39e18dfe7cb0280;p=pandora-kernel.git [SCSI] bnx2i: fix null ptr ref in conn get param bnx2i has some checks to try and make sure the ep is not destroyed while the addr/port is getting read. However, if after this check: if (!(bnx2i_conn && bnx2i_conn->ep && bnx2i_conn->ep->hba)) goto out; bnx2i_conn->ep is cleared by ep_disconnect then we will oops. This patches fixes the problem by having the driver use the get_ep_param callback instead of get_conn_param. Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed