Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167904
b: refs/heads/master
c: d10c085
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and James Bottomley committed Oct 22, 2009
1 parent 986b4ec commit 1e5be56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37e6ba00720c2786330dec2a9a5081e9e049422f
refs/heads/master: d10c0858f618c20547d4eda8aee9c3afd91599cf
11 changes: 6 additions & 5 deletions trunk/drivers/s390/scsi/zfcp_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,13 @@ static void __init zfcp_init_device_configure(char *busid, u64 wwpn, u64 lun)
static void __init zfcp_init_device_setup(char *devstr)
{
char *token;
char *str;
char *str, *str_saved;
char busid[ZFCP_BUS_ID_SIZE];
u64 wwpn, lun;

/* duplicate devstr and keep the original for sysfs presentation*/
str = kmalloc(strlen(devstr) + 1, GFP_KERNEL);
str_saved = kmalloc(strlen(devstr) + 1, GFP_KERNEL);
str = str_saved;
if (!str)
return;

Expand All @@ -152,12 +153,12 @@ static void __init zfcp_init_device_setup(char *devstr)
if (!token || strict_strtoull(token, 0, (unsigned long long *) &lun))
goto err_out;

kfree(str);
kfree(str_saved);
zfcp_init_device_configure(busid, wwpn, lun);
return;

err_out:
kfree(str);
err_out:
kfree(str_saved);
pr_err("%s is not a valid SCSI device\n", devstr);
}

Expand Down

0 comments on commit 1e5be56

Please sign in to comment.