diff options
author | Sergio Paracuellos <[email protected]> | 2020-03-20 12:01:23 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-03-20 15:10:51 +0100 |
commit | 825c6f470c62da05195fab57bb6561ccc1bdafcd (patch) | |
tree | 5f10705a36be53cdd33a20ff681ef542cf1391eb /lib/mpi/mpiutil.c | |
parent | 7846a9828572cf6e7f6aefe61fcfe0195abe9ae1 (diff) |
staging: mt7621-pci: be sure gpio descriptor is null on fails
Function 'devm_gpiod_get_index_optional' returns NULL if the
descriptor is invalid and the error associated for the error
pointer is ENOENT. Sometimes if the pin is just assigned the
error associated for the pointer might not be ENOENT but other.
In order to avoid weirds behaviours if this happen set descriptor
to NULL in the driver port structure.
Signed-off-by: Sergio Paracuellos <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions