diff options
| author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-08-18 15:43:30 +0200 |
|---|---|---|
| committer | James Bottomley <James.Bottomley@suse.de> | 2009-09-05 08:49:46 -0500 |
| commit | 0fac3f477b6b520ae7d972ceb6e958e6807c8e1a (patch) | |
| tree | bef6ee15c92486613dd918de6a8ff00311fc379d /scripts/patch-kernel | |
| parent | [SCSI] zfcp: proper use of device register (diff) | |
| download | linux-0fac3f477b6b520ae7d972ceb6e958e6807c8e1a.tar.gz linux-0fac3f477b6b520ae7d972ceb6e958e6807c8e1a.zip | |
[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 <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
