lkml.org 
[lkml]   [2020]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4 4/4] Input: adp5589: Fix possible memory leak of 'kpad'
From
Date
> 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

\
 
 \ /
  Last update: 2020-04-07 15:40    [W:0.019 / U:3.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site