i2c: Fix error value returned by several bus drivers
When adding checks for ACPI resource conflicts to many bus drivers,
not enough attention was paid to the error paths, and for several
drivers this causes 0 to be returned on error in some cases. Fix this
by properly returning a non-zero value on every error.
Signed-off-by: NJean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org
Showing
想要评论请 注册 或 登录