projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df42153
)
isdn: icn: NULL dereference printing error message
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 7 Nov 2013 07:58:06 +0000
(10:58 +0300)
committer
David S. Miller
<davem@davemloft.net>
Fri, 8 Nov 2013 00:11:13 +0000
(19:11 -0500)
"card2" is NULL here so I have changed it to use "id2" instead of
"card2->interface.id".
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/icn/icn.c
patch
|
blob
|
history
diff --git
a/drivers/isdn/icn/icn.c
b/drivers/isdn/icn/icn.c
index
e74df7c
..
53d487f
100644
(file)
--- a/
drivers/isdn/icn/icn.c
+++ b/
drivers/isdn/icn/icn.c
@@
-1580,8
+1580,7
@@
icn_addcard(int port, char *id1, char *id2)
}
if (!(card2 = icn_initcard(port, id2))) {
printk(KERN_INFO
- "icn: (%s) half ICN-4B, port 0x%x added\n",
- card2->interface.id, port);
+ "icn: (%s) half ICN-4B, port 0x%x added\n", id2, port);
return 0;
}
card->doubleS0 = 1;