mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
video: of: display_timing: double free on error
The display_timings_release() function frees "disp" and we free it again on the next line. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]>
This commit is contained in:
parent
6c131850ec
commit
62795a0d81
1 changed files with 1 additions and 0 deletions
|
|
@ -236,6 +236,7 @@ timingfail:
|
|||
if (native_mode)
|
||||
of_node_put(native_mode);
|
||||
display_timings_release(disp);
|
||||
disp = NULL;
|
||||
entryfail:
|
||||
kfree(disp);
|
||||
dispfail:
|
||||
|
|
|
|||
Loading…
Reference in a new issue