projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d1e547
)
[SCSI] zfcp: Prevent access on uninitialized memory.
author
Swen Schillig
<swen@vnet.ibm.com>
Fri, 16 Jul 2010 13:37:40 +0000
(15:37 +0200)
committer
James Bottomley
<James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:48:53 +0000
(09:48 -0500)
Initialize allocated memory to zero to prevent access on error. This
prevents a possible error in the error handling path.
Signed-off-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>
drivers/s390/scsi/zfcp_dbf.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/s390/scsi/zfcp_dbf.c
b/drivers/s390/scsi/zfcp_dbf.c
index 075852f6968c478d5920c9b5230470bf3e1c73d6..a08d33a96ec9514622629869cd0d60f1815861b3 100644
(file)
--- a/
drivers/s390/scsi/zfcp_dbf.c
+++ b/
drivers/s390/scsi/zfcp_dbf.c
@@
-1005,7
+1005,7
@@
int zfcp_dbf_adapter_register(struct zfcp_adapter *adapter)
char dbf_name[DEBUG_MAX_NAME_LEN];
struct zfcp_dbf *dbf;
- dbf = k
m
alloc(sizeof(struct zfcp_dbf), GFP_KERNEL);
+ dbf = k
z
alloc(sizeof(struct zfcp_dbf), GFP_KERNEL);
if (!dbf)
return -ENOMEM;