From: Boaz Harrosh Date: Sun, 8 Feb 2009 16:02:22 +0000 (+0200) Subject: [SCSI] libosd: Fix NULL dereference BUG when target is not OSD conformant X-Git-Tag: v2.6.30-rc1~641^2~70 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97218a1499391b174ea95e05b7a40fbb73e79813;p=pandora-kernel.git [SCSI] libosd: Fix NULL dereference BUG when target is not OSD conformant Very old OSC's Target had a BUG in the Get/Set attributes where it was looking in the wrong places for attribute lists length. If used with the open-osd initiator, the initiator would dereference a NULL pointer when retrieving system_information attributes. Checks are added that retrieval of each attribute is successful before accessing its value. Signed-off-by: Boaz Harrosh Signed-off-by: James Bottomley --- Reading git-diff-tree failed