Re: [PATCH v4 4/4] Input: adp5589: Fix possible memory leak of 'kpad'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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”.


> This change fixes that.

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

Regards,
Markus




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux