History

Merge 'staging-next' to Linus's tree

This merges the staging-next tree to Linus's tree and resolves some conflicts that were present due to changes in other trees that were affected by files here.

Greg Kroah-Hartman committed 16 years ago

Commit e4c5bf82 parents 8128057 a4ac0d81365 files · +421138 −148570Browse files

Showing the changes to drivers/staging/lirc/lirc_sasem.c (1 of 1365 files). Show all

Unified · Split

drivers/staging/lirc/lirc_sasem.c+9−6
@@ -387,8 +387,10 @@ static ssize_t vfd_write(struct file *file, const char *buf, · 386 unmodified lines
387387 }
388388
389389 data_buf = memdup_user(buf, n_bytes);
390− if (PTR_ERR(data_buf))
391− return PTR_ERR(data_buf);
390+ if (IS_ERR(data_buf)) {
391+ retval = PTR_ERR(data_buf);
392+ goto exit;
393+ }
392394
393395 memcpy(context->tx.data_buf, data_buf, n_bytes);
394396
@@ -513,7 +515,7 @@ exit: · 118 unmodified lines
513515 mutex_unlock(&context->ctx_lock);
514516
515517 mutex_unlock(&disconnect_lock);
516− return 0;
518+ return retval;
517519 }
518520
519521 /**
@@ -804,7 +806,8 @@ static int sasem_probe(struct usb_interface *interface, · 284 unmodified lines
804806 if (lirc_minor < 0) {
805807 err("%s: lirc_register_driver failed", __func__);
806808 alloc_status = 7;
807− mutex_unlock(&context->ctx_lock);
809+ retval = lirc_minor;
810+ goto unlock;
808811 } else
809812 printk(KERN_INFO "%s: Registered Sasem driver (minor:%d)\n",
810813 __func__, lirc_minor);
@@ -829,7 +832,7 @@ alloc_status_switch: · 18 unmodified lines
829832 context = NULL;
830833 case 1:
831834 retval = -ENOMEM;
832− goto exit;
835+ goto unlock;
833836 }
834837
835838 /* Needed while unregistering! */
@@ -860,7 +863,7 @@ alloc_status_switch: · 24 unmodified lines
860863
861864 printk(KERN_INFO "%s: Sasem device on usb<%d:%d> initialized\n",
862865 __func__, dev->bus->busnum, dev->devnum);
863−
866+unlock:
864867 mutex_unlock(&context->ctx_lock);
865868 exit:
866869 return retval;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t