Skip to content
Commit ba236455 authored by Yang Yingliang's avatar Yang Yingliang Committed by Thomas Zimmermann
Browse files

video: fbdev: atmel_lcdfb: fix return error code in atmel_lcdfb_of_init()

If devm_kzalloc() failed after the first time, atmel_lcdfb_of_init()
can't return -ENOMEM, fix this by putting the error code in loop.

Fixes: b985172b

 ("video: atmel_lcdfb: add device tree suport")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20201117061350.3453742-1-yangyingliang@huawei.com
parent e9d2871f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment