Home Home > GIT Browse > SLE12-SP3-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2018-07-05 10:37:23 +0200
committerOliver Neukum <oneukum@suse.com>2018-07-05 10:38:31 +0200
commit1798b78f4989e257a9f99d492c70566982d203eb (patch)
treefea225c2881480067b1218a60f13645e99332bfa
parent85464c14850b804c5c6fa42d81b3e79710efaba1 (diff)
video/fbdev/stifb: Return -ENOMEM after a failed kzalloc()
in stifb_init_fb() (bsc#1090888 bsc#1099966). suse-commit: f6ee1e75a5bf973c7f94cd7bc7e78c8bb55e3116
-rw-r--r--drivers/video/fbdev/stifb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c
index accfef71e984..10376e2ea7cb 100644
--- a/drivers/video/fbdev/stifb.c
+++ b/drivers/video/fbdev/stifb.c
@@ -1128,7 +1128,7 @@ static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
fb = kzalloc(sizeof(*fb), GFP_ATOMIC);
if (!fb) {
printk(KERN_ERR "stifb: Could not allocate stifb structure\n");
- return -ENODEV;
+ return -ENOMEM;
}
info = &fb->info;