mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
isdn: icn: NULL dereference printing error message
"card2" is NULL here so I have changed it to use "id2" instead of "card2->interface.id". Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
df42153c59
commit
5600090eb1
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue