Skip to content

Commit

Permalink
video: fbdev: amifb: add FIXMEs about {put,get}_user() failures
Browse files Browse the repository at this point in the history
Since we lack the hardware (or proper emulator setup) for
testing needed changes add FIXMEs to document the issues
(so at least they are not forgotten).

Cc: Al Viro <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
bzolnier committed Jul 10, 2020
1 parent 40bf8c3 commit cd7946c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/video/fbdev/amifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1890,6 +1890,7 @@ static int ami_get_var_cursorinfo(struct fb_var_cursorinfo *var,
| ((datawords >> 15) & 1));
datawords <<= 1;
#endif
/* FIXME: check the return value + test the change */
put_user(color, data++);
}
if (bits > 0) {
Expand Down Expand Up @@ -1958,6 +1959,7 @@ static int ami_set_var_cursorinfo(struct fb_var_cursorinfo *var,
bits = 16; words = delta; datawords = 0;
for (width = (short)var->width - 1; width >= 0; width--) {
unsigned long tdata = 0;
/* FIXME: check the return value + test the change */
get_user(tdata, data);
data++;
#ifdef __mc68000__
Expand Down

0 comments on commit cd7946c

Please sign in to comment.