Skip to content
Commit ce0dffaf authored by Wolfram Sang's avatar Wolfram Sang Committed by Wolfram Sang
Browse files

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: default avatarWolfram Sang <wsa-dev@sang-engineering.com>
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent cc461881
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment