From: Joe Eykholt Date: Tue, 25 Aug 2009 21:02:43 +0000 (-0700) Subject: [SCSI] libfc: discovery gpn_ft parse bug X-Git-Tag: v2.6.32-rc1~689^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81a67b9717d9e4f81bed7d1f2df6ba86aaab9ad9;p=pandora-kernel.git [SCSI] libfc: discovery gpn_ft parse bug In fc_disc_gpn_ft_parse(), after fc_disc_done() is called, the disc state is changed by setting buf_len = 0. This is wrong since the discovery may have restarted. Instead, return after calling fc_disc_done. Also, return an error on memory allocation failure. Signed-off-by: Joe Eykholt Signed-off-by: Robert Love Signed-off-by: James Bottomley --- Reading git-diff-tree failed