summaryrefslogtreecommitdiff
path: root/drivers/mux
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-12-20 19:13:07 +0100
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2018-12-20 19:13:07 +0100
commitc143a559b073aeea688b9bb7c5b46f3cf322d569 (patch)
treef004548efca498d415564a81c2250bc7cb96229d /drivers/mux
parent31d1b7710262fba12282b24083f20dc76e0efc93 (diff)
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 'drivers/mux')
0 files changed, 0 insertions, 0 deletions