Skip to contentSkip to conversation

Input: adp5589: Fix possible memory leak of 'kpad'

PATCH Markus Elfring 1 participant 1 message Apr 7, 2020 HID

lore
Share & tools
lore
#0 lore raw
Quoted 2 lines

If 'adp5589_i2c_get_driver_data()' returns an error, the exit path should be to also free the 'kpad' object.

Wording alternative:
Release the kpad object also after a failed call of the function “adp5589_i2c_get_driver_data”.

Quoted 1 line

This change fixes that.

Please replace this sentence by the tag “Fixes”
(because the exception handling was improved).

Regards,
Markus