From: Randy Dunlap Check driver layer return values in bttv. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton --- drivers/media/video/bt8xx/bttv-driver.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN drivers/media/video/bt8xx/bttv-driver.c~bttv-must_check-fixes drivers/media/video/bt8xx/bttv-driver.c --- a/drivers/media/video/bt8xx/bttv-driver.c~bttv-must_check-fixes +++ a/drivers/media/video/bt8xx/bttv-driver.c @@ -3909,6 +3909,8 @@ static void bttv_unregister_video(struct /* register video4linux devices */ static int __devinit bttv_register_video(struct bttv *btv) { + int ret; + if (no_overlay <= 0) { bttv_video_template.type |= VID_TYPE_OVERLAY; } else { _