Skip to content

Commit

Permalink
ps3fb: do not print warnings on invalid frame numbers
Browse files Browse the repository at this point in the history
Do not print warnings on invalid frame numbers, as this can be triggered from
user space.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Geert Uytterhoeven authored and Linus Torvalds committed Oct 16, 2007
1 parent 535da7f commit 0138bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/video/ps3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0138bd8

Please sign in to comment.