mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
matrox maven: fix a broken error path
I broke an error path with d03c21ec0b,
sorry about that.
The machine will crash if the i2c_attach_client() or maven_init_client()
calls fail, although nobody has yet reported this happening.
Signed-off-by: Jean Delvare <[email protected]>
Acked-by: Krzysztof Helt <[email protected]>
Cc: Petr Vandrovec <[email protected]>
Cc: <[email protected]> [2.6.25.x, 2.6.26.x]
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d6bf73e434
commit
5ede40f879
1 changed files with 1 additions and 1 deletions
|
|
@ -1266,7 +1266,7 @@ static int maven_detect_client(struct i2c_adapter* adapter, int address, int kin
|
|||
ERROR4:;
|
||||
i2c_detach_client(new_client);
|
||||
ERROR3:;
|
||||
kfree(new_client);
|
||||
kfree(data);
|
||||
ERROR0:;
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue