]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
sm501fb: deallocate colormap only if allocated
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Thu, 9 Nov 2017 17:09:31 +0000 (18:09 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 9 Nov 2017 17:09:31 +0000 (18:09 +0100)
commitd9b1fe651606c8da040adca6edf37b853dfd9514
treecea530713f89dc6bafb128b8d84ec751e2a139fa
parent31ff6b2a42979bb223def9609093ff1d8dcfb67e
sm501fb: deallocate colormap only if allocated

There are cases when panel and crt both are not defined and only one of
them is defined and initialized. In such cases, while removing the
device deallocate the colormap only if that particular fb is defined.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/sm501fb.c