diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-09-02 18:58:52 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-22 17:12:30 +0100 |
commit | 6045b01dd0e3cd3759eafe7f290ed04c957500b1 (patch) | |
tree | c884b1903d80b6552ea541da53f208678e4d3019 /drivers/media/dvb-frontends | |
parent | 548ad8ee68c034300b714b297fe18b16a8a4f797 (diff) |
media: [next] staging: media: atomisp: fix memory leak of object flash
In the case where the call to lm3554_platform_data_func returns an
error there is a memory leak on the error return path of object
flash. Fix this by adding an error return path that will free
flash and rename labels fail2 to fail3 and fail1 to fail2.
Link: https://lore.kernel.org/linux-media/20200902165852.201155-1-colin.king@canonical.com
Fixes: 9289cdf39992 ("staging: media: atomisp: Convert to GPIO descriptors")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends')
0 files changed, 0 insertions, 0 deletions