Skip to content

Commit 5600090

Browse files
Dan Carpenterdavem330
authored andcommitted
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]>
1 parent df42153 commit 5600090

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/isdn/icn/icn.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1580,8 +1580,7 @@ icn_addcard(int port, char *id1, char *id2)
15801580
}
15811581
if (!(card2 = icn_initcard(port, id2))) {
15821582
printk(KERN_INFO
1583-
"icn: (%s) half ICN-4B, port 0x%x added\n",
1584-
card2->interface.id, port);
1583+
"icn: (%s) half ICN-4B, port 0x%x added\n", id2, port);
15851584
return 0;
15861585
}
15871586
card->doubleS0 = 1;

0 commit comments

Comments
 (0)