diff options
| author | Dan Carpenter <[email protected]> | 2017-09-07 07:29:26 +0000 |
|---|---|---|
| committer | Linus Walleij <[email protected]> | 2017-09-12 09:26:40 +0000 |
| commit | 41470c379b4f8d9a1513d930338fadfbccc287b6 (patch) | |
| tree | 5e82a8715fb7d81877734b05834ab458b7e1b457 /fs/btrfs/dev-replace.c | |
| parent | pinctrl: sprd: Restrict PINCTRL_SPRD to ARCH_SPRD or COMPILE_TEST (diff) | |
| download | kernel-41470c379b4f8d9a1513d930338fadfbccc287b6.tar.gz kernel-41470c379b4f8d9a1513d930338fadfbccc287b6.zip | |
pinctrl: sprd: check for allocation failure
devm_pinctrl_get() could fail with ERR_PTR(-ENOMEM) so I have added a
check for that. I also reversed the other IS_ERR() test because it was
a little confusing to test one way and then the opposite a couple lines
later.
Fixes: 41d32cfce1ae ("pinctrl: sprd: Add Spreadtrum pin control driver")
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
