summaryrefslogtreecommitdiff
path: root/fs/btrfs/disk-io.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2016-02-06 22:37:33 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-13 09:21:31 +0100
commit0c4da5d2b0d53b79ebe8e3b3f17edfe6ec146737 (patch)
tree1b5bccb893186cfeae2dabd05d2e813227cd87dd /fs/btrfs/disk-io.c
parent5e946ed3c55c43441440d478c0b1b5086d6e8999 (diff)
leds: leds-gpio: Fix return value check in create_gpio_led()
commit 2d88a331e48095cf60ad9bdf3177bd401bf99727 upstream. In case of error, the function gpio_to_desc() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/btrfs/disk-io.c')
0 files changed, 0 insertions, 0 deletions