Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33025
b: refs/heads/master
c: 53dd8de
h: refs/heads/master
i:
  33023: 7fd7f20
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Jul 29, 2006
1 parent 5f66f27 commit dcce271
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df2732706c745c827762aaf51892f281fb937680
refs/heads/master: 53dd8def52100ed8be4dae0cf1c2dc1f7e0fcd2c
11 changes: 11 additions & 0 deletions trunk/drivers/media/video/videodev.c
Original file line number Diff line number Diff line change
Expand Up @@ -1538,6 +1538,8 @@ int video_register_device(struct video_device *vfd, int type, int nr)
name_base = "radio";
break;
default:
printk(KERN_ERR "%s called with unknown type: %d\n",
__FUNCTION__, type);
return -1;
}

Expand Down Expand Up @@ -1592,6 +1594,15 @@ int video_register_device(struct video_device *vfd, int type, int nr)
"http://lwn.net/Articles/36850/\n", vfd->name);
#endif
return 0;

fail_classdev:
class_device_unregister(&vfd->class_dev);
fail_minor:
mutex_lock(&videodev_lock);
video_device[vfd->minor] = NULL;
vfd->minor = -1;
mutex_unlock(&videodev_lock);
return ret;
}

/**
Expand Down

0 comments on commit dcce271

Please sign in to comment.