git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4395b6
)
[SCSI] zfcp: Handle failures during device allocation correctly
author
Christof Schmitt
<christof.schmitt@de.ibm.com>
Tue, 18 Aug 2009 13:43:30 +0000
(15:43 +0200)
committer
James Bottomley
<James.Bottomley@suse.de>
Sat, 5 Sep 2009 13:49:46 +0000
(08:49 -0500)
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 <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
No differences found