]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ibft: Kernel oops when rmmoding iscsi_ibft with no iBFT present.
authorKonrad Rzeszutek Wilk <konrad@kernel.org>
Wed, 11 Aug 2010 20:35:40 +0000 (16:35 -0400)
committerKonrad Rzeszutek Wilk <konrad@kernel.org>
Wed, 11 Aug 2010 20:35:40 +0000 (16:35 -0400)
commita12415ff589ac5106e6b489f44c947b565fcb963
tree9cdcd205ed63e79e68a280160c9f21426ca804c2
parent5abd9ccced7a726c817dd6b5b96bc933859138d1
ibft: Kernel oops when rmmoding iscsi_ibft with no iBFT present.

We failed to check to see if actually allocated structures
to contain the iBFT structure and went ahead to dereference it.

This patch fixes the OOPS.

Reported-by: "Jayamohan Kalickal" <jayamohank@serverengines.com>  
Tested-by: "Jayamohan Kalickal" <jayamohank@serverengines.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
Signed-off-by: Peter Jones <pjones@redhat.com>
 
drivers/firmware/iscsi_ibft.c