git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
s390
/
char
/
vmlogrdr.c
diff --git
a/drivers/s390/char/vmlogrdr.c
b/drivers/s390/char/vmlogrdr.c
index
c625b69
..
b2d75de
100644
(file)
--- a/
drivers/s390/char/vmlogrdr.c
+++ b/
drivers/s390/char/vmlogrdr.c
@@
-759,8
+759,9
@@
vmlogrdr_register_device(struct vmlogrdr_priv_t *priv) {
struct device *dev;
int ret;
struct device *dev;
int ret;
- dev = k
z
alloc(sizeof(struct device), GFP_KERNEL);
+ dev = k
m
alloc(sizeof(struct device), GFP_KERNEL);
if (dev) {
if (dev) {
+ memset(dev, 0, sizeof(struct device));
snprintf(dev->bus_id, BUS_ID_SIZE, "%s",
priv->internal_name);
dev->bus = &iucv_bus;
snprintf(dev->bus_id, BUS_ID_SIZE, "%s",
priv->internal_name);
dev->bus = &iucv_bus;