]> git.ipfire.org Git - thirdparty/linux.git/commit
fbdev: omap2: fix inconsistent lock returns in omapfb_mmap
authorHongling Zeng <zenghongling@kylinos.cn>
Thu, 2 Apr 2026 09:34:03 +0000 (17:34 +0800)
committerHelge Deller <deller@gmx.de>
Thu, 9 Apr 2026 08:26:11 +0000 (10:26 +0200)
commit98cf7df6e0844f7076df1db690c1ede9d69b61ff
tree9f3ef42438e242ba8b63f42bd3414e3bc0e01cd0
parent3bea4a0ee8188c2702f0536fbffbc44d3eb9e619
fbdev: omap2: fix inconsistent lock returns in omapfb_mmap

Fix the warning about inconsistent returns for '&rg->lock' in
omapfb_mmap() function. The warning arises because the error path
uses 'ofbi->region' while the normal path uses 'rg'.

smatch warnings:
drivers/video/fbdev/omap2/omapfb/omapfb-main.c:1126 omapfb_mmap()
warn: inconsistent returns '&rg->lock'.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/omap2/omapfb/omapfb-main.c