patch-2.2.17 linux/drivers/video/chipsfb.c
Next file: linux/drivers/video/controlfb.c
Previous file: linux/drivers/video/atyfb.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Sep 4 18:39:22 2000
- Orig file:
v2.2.16/drivers/video/chipsfb.c
- Orig date:
Mon Sep 4 18:37:41 2000
diff -u --recursive --new-file v2.2.16/drivers/video/chipsfb.c linux/drivers/video/chipsfb.c
@@ -728,6 +728,8 @@
switch (when) {
case PBOOK_SLEEP_REQUEST:
p->save_framebuffer = vmalloc(nb);
+ if (p->save_framebuffer == NULL)
+ return PBOOK_SLEEP_REFUSE;
break;
case PBOOK_SLEEP_REJECT:
if (p->save_framebuffer) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)