diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-07-09 07:34:58 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-07-14 16:06:44 +0300 |
commit | ce0dffafd403e7824ae78a806d08c04ff8112e79 (patch) | |
tree | bb210f5917c399613bf303e7db9da453d48f1acc /lib/mpi/mpiutil.c | |
parent | cc4618813e4bc409cd22641f6001118ef4479cfc (diff) | |
download | linux-ce0dffafd403e7824ae78a806d08c04ff8112e79.tar.xz |
i2c: free idr when sanity checks in i2c_register_adapter() fail
On error, we should give idr back to the pool in any case.
Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions