Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325478
b: refs/heads/master
c: c8cad4c
h: refs/heads/master
v: v3
  • Loading branch information
Ian Abbott authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent 1965e64 commit af2cef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 6f73fbcec27be8b074555e18d9f50c3013e4d802
refs/heads/master: c8cad4c89ee3b15935c532210ae6ebb5c0a2734d
3 changes: 2 additions & 1 deletion trunk/drivers/staging/comedi/comedi_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,6 @@ static int do_cmd_ioctl(struct comedi_device *dev,
goto cleanup;
}

kfree(async->cmd.chanlist);
async->cmd = cmd;
async->cmd.data = NULL;
/* load channel/gain list */
Expand Down Expand Up @@ -2033,6 +2032,8 @@ static void do_become_nonbusy(struct comedi_device *dev,
if (async) {
comedi_reset_async_buf(async);
async->inttrig = NULL;
kfree(async->cmd.chanlist);
async->cmd.chanlist = NULL;
} else {
dev_err(dev->class_dev,
"BUG: (?) do_become_nonbusy called with async=NULL\n");
Expand Down

0 comments on commit af2cef3

Please sign in to comment.