Commit 780351a
drm/tegra: Fix a possible null pointer dereference
In tegra_crtc_reset(), new memory is allocated with kzalloc(), but
no check is performed. Before calling __drm_atomic_helper_crtc_reset,
state should be checked to prevent possible null pointer dereference.
Fixes: b7e0b04 ("drm/tegra: Convert to using __drm_atomic_helper_crtc_reset() for reset.")
Cc: [email protected]
Signed-off-by: Qiu-ji Chen <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/[email protected]1 parent 3c36423 commit 780351a
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1393 | 1393 | | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | | - | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
1397 | 1400 | | |
1398 | 1401 | | |
1399 | 1402 | | |
| |||
0 commit comments