Skip to content

Commit

Permalink
video: s3c-fb: return an error when bpp is invalid
Browse files Browse the repository at this point in the history
This patch returns an error, when bpp is invalid in
s3c_fb_check_var(). If invalid bpp is requested,
an error should be returned.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
  • Loading branch information
Jingoo Han committed Nov 26, 2012
1 parent d65c6a9 commit 418d620
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/s3c-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var,

default:
dev_err(sfb->dev, "invalid bpp\n");
return -EINVAL;
}

dev_dbg(sfb->dev, "%s: verified parameters\n", __func__);
Expand Down

0 comments on commit 418d620

Please sign in to comment.