From: Christof Schmitt Date: Tue, 18 Aug 2009 13:43:30 +0000 (+0200) Subject: [SCSI] zfcp: Handle failures during device allocation correctly X-Git-Tag: v2.6.32-rc1~689^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fac3f477b6b520ae7d972ceb6e958e6807c8e1a;p=pandora-kernel.git [SCSI] zfcp: Handle failures during device allocation correctly dev_set_name tries to allocate memory, so check the return value for allocation failures. After dev_set_name succeeds, call device_register as next step to be able to use put_device during error handling. Reviewed-by: Swen Schillig Signed-off-by: Christof Schmitt Signed-off-by: James Bottomley --- Reading git-diff-tree failed