diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-12-20 19:13:07 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-12-20 19:13:07 +0100 |
commit | c143a559b073aeea688b9bb7c5b46f3cf322d569 (patch) | |
tree | f004548efca498d415564a81c2250bc7cb96229d /include/uapi/linux/fb.h | |
parent | 31d1b7710262fba12282b24083f20dc76e0efc93 (diff) | |
download | linux-stable-c143a559b073aeea688b9bb7c5b46f3cf322d569.tar.gz linux-stable-c143a559b073aeea688b9bb7c5b46f3cf322d569.tar.bz2 linux-stable-c143a559b073aeea688b9bb7c5b46f3cf322d569.zip |
udlfb: fix some inconsistent NULL checking
In the current kernel, then kzalloc() can't fail for small allocations,
but if it did fail then we would have a NULL dereference in the error
handling. Also in dlfb_usb_disconnect() if "info" were NULL then it
would cause an Oops inside the unregister_framebuffer() function but it
can't be NULL so let's remove that check.
Fixes: 68a958a915ca ("udlfb: handle unplug properly")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Bernie Thompson <bernie@plugable.com>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Colin Ian King <colin.king@canonical.com>
Cc: Wen Yang <wen.yang99@zte.com.cn>
[b.zolnierkie: added "Fixes:" tag]
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'include/uapi/linux/fb.h')
0 files changed, 0 insertions, 0 deletions