mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
ps3fb: do not print warnings on invalid frame numbers
Do not print warnings on invalid frame numbers, as this can be triggered from user space. Signed-off-by: Geert Uytterhoeven <[email protected]> Cc: "Antonino A. Daplas" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
535da7ffe6
commit
0138bd841e
1 changed files with 2 additions and 2 deletions
|
|
@ -389,8 +389,8 @@ static int ps3fb_sync(struct fb_info *info, u32 frame)
|
|||
yres = ps3fb_res[i].yres;
|
||||
|
||||
if (frame > ps3fb.num_frames - 1) {
|
||||
dev_warn(info->device, "%s: invalid frame number (%u)\n",
|
||||
__func__, frame);
|
||||
dev_dbg(info->device, "%s: invalid frame number (%u)\n",
|
||||
__func__, frame);
|
||||
return -EINVAL;
|
||||
}
|
||||
offset = xres * yres * BPP * frame;
|
||||
|
|
|
|||
Loading…
Reference in a new issue