aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorJan H. Schönherr <[email protected]>2017-09-04 14:00:50 +0000
committerBartlomiej Zolnierkiewicz <[email protected]>2017-09-04 14:00:50 +0000
commitb9a58de545858ac9ee67745cdea6d94cc322938e (patch)
tree3bffbb1a4cad0c988e36620e9934421bb031d6c5 /fs/btrfs/dev-replace.c
parentvideo: fbdev: make fb_videomode const (diff)
downloadkernel-b9a58de545858ac9ee67745cdea6d94cc322938e.tar.gz
kernel-b9a58de545858ac9ee67745cdea6d94cc322938e.zip
vgacon: Prevent faulty bootparams.screeninfo from causing harm
If a zero for the number of colums or rows manages to slip through, gotoxy() will underflow vc->vc_pos, causing the next action on the referenced memory to end with a page fault. Make the check in vgacon_startup() more pessimistic to prevent that. Signed-off-by: Jan H. Schönherr <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Jiri Slaby <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions