Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24899
b: refs/heads/master
c: d32af0f
h: refs/heads/master
i:
  24897: 62b4bdf
  24895: aed9b2c
v: v3
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Mar 31, 2006
1 parent 84d756f commit 6688dee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b0b4ed728cdd0c7204392b0c18857e4a99917aa5
refs/heads/master: d32af0fe11b1618572389723e93cf33a4cc11c81
9 changes: 5 additions & 4 deletions trunk/drivers/isdn/sc/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ int sc_ioctl(int card, scs_ioctl *data)
pr_debug("%s: SCIOCRESET: ioctl received\n",
sc_adapter[card]->devicename);
sc_adapter[card]->StartOnReset = 0;
return (reset(card));
kfree(rcvmsg);
return reset(card);
}

case SCIOCLOAD:
Expand Down Expand Up @@ -183,7 +184,7 @@ int sc_ioctl(int card, scs_ioctl *data)
sc_adapter[card]->devicename);

spid = kmalloc(SCIOC_SPIDSIZE, GFP_KERNEL);
if(!spid) {
if (!spid) {
kfree(rcvmsg);
return -ENOMEM;
}
Expand All @@ -195,10 +196,10 @@ int sc_ioctl(int card, scs_ioctl *data)
if (!status) {
pr_debug("%s: SCIOCGETSPID: command successful\n",
sc_adapter[card]->devicename);
}
else {
} else {
pr_debug("%s: SCIOCGETSPID: command failed (status = %d)\n",
sc_adapter[card]->devicename, status);
kfree(spid);
kfree(rcvmsg);
return status;
}
Expand Down

0 comments on commit 6688dee

Please sign in to comment.