Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219734
b: refs/heads/master
c: ff7d368
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Sep 5, 2010
1 parent c62e333 commit 22aca5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 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: cc92ac20496fa24209712ab561738f4f8b57336a
refs/heads/master: ff7d368ed98b27405197a1d3e76d8032ecbe6194
13 changes: 8 additions & 5 deletions trunk/drivers/staging/lirc/lirc_sasem.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,10 @@ static ssize_t vfd_write(struct file *file, const char *buf,
}

data_buf = memdup_user(buf, n_bytes);
if (PTR_ERR(data_buf))
return PTR_ERR(data_buf);
if (PTR_ERR(data_buf)) {
retval = PTR_ERR(data_buf);
goto exit;
}

memcpy(context->tx.data_buf, data_buf, n_bytes);

Expand Down Expand Up @@ -803,7 +805,8 @@ static int sasem_probe(struct usb_interface *interface,
if (lirc_minor < 0) {
err("%s: lirc_register_driver failed", __func__);
alloc_status = 7;
mutex_unlock(&context->ctx_lock);
retval = lirc_minor;
goto unlock;
} else
printk(KERN_INFO "%s: Registered Sasem driver (minor:%d)\n",
__func__, lirc_minor);
Expand All @@ -828,7 +831,7 @@ static int sasem_probe(struct usb_interface *interface,
context = NULL;
case 1:
retval = -ENOMEM;
goto exit;
goto unlock;
}

/* Needed while unregistering! */
Expand Down Expand Up @@ -859,7 +862,7 @@ static int sasem_probe(struct usb_interface *interface,

printk(KERN_INFO "%s: Sasem device on usb<%d:%d> initialized\n",
__func__, dev->bus->busnum, dev->devnum);

unlock:
mutex_unlock(&context->ctx_lock);
exit:
return retval;
Expand Down

0 comments on commit 22aca5d

Please sign in to comment.