diff options
author | Bartosz Golaszewski <[email protected]> | 2018-10-03 09:31:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-10-15 15:56:15 +0200 |
commit | cccb3b19e762edc8ef0481be506967555cb9e317 (patch) | |
tree | a18f24999e6132cadd504a74e9da2abd9e7067cf /scripts/bpf_helpers_doc.py | |
parent | badcdff107cbfd7fef5f089260177efc56fe1a9f (diff) |
nvmem: fix nvmem_cell_get_from_lookup()
We check if the pointer returned by __nvmem_device_get() is not NULL
while we should actually check if it is not IS_ERR(nvmem). Fix it.
While we're at it: fix the next error path where we should assign an
error value to cell before returning.
Signed-off-by: Bartosz Golaszewski <[email protected]>
Reported-by: Stephen Rothwell <[email protected]>
Acked-by: Srinivas Kandagatla <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions