]> www.infradead.org Git - users/dwmw2/linux.git/commit
Input: gscps2 - check return value of ioremap() in gscps2_probe()
authorXie Shaowen <studentxswpy@163.com>
Tue, 2 Aug 2022 07:20:33 +0000 (15:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2022 13:16:15 +0000 (15:16 +0200)
commitbda7046d4d59a2224a689ed0129ef152a6761cf6
tree855e05d697e057a59f17b0e1bd9f5ac9eab952d5
parent541840859ace9c2ccebc32fa9e376c7bd3def490
Input: gscps2 - check return value of ioremap() in gscps2_probe()

commit e61b3125a4f036b3c6b87ffd656fc1ab00440ae9 upstream.

The function ioremap() in gscps2_probe() can fail, so
its return value should be checked.

Fixes: 4bdc0d676a643 ("remove ioremap_nocache and devm_ioremap_nocache")
Cc: <stable@vger.kernel.org> # v5.6+
Reported-by: Hacash Robot <hacashRobot@santino.com>
Signed-off-by: Xie Shaowen <studentxswpy@163.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/serio/gscps2.c