1
0
Fork 0

MLK-19500: drm: imx: dcss: fix tracing function

kzalloc with GFP_KERNEL argument, may sleep. dcss_trace_write() is
called also from interrupt context and sleeping is not acceptable.

This patch will make kzalloc() call atomic.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
pull/10/head
Laurentiu Palcu 2018-09-07 10:14:57 +03:00 committed by Jason Liu
parent 7eca37dee9
commit e2aa56b951
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ void dcss_trace_write(u64 tag)
if (!dcss_tracing)
return;
trace = kzalloc(sizeof(*trace), GFP_KERNEL);
trace = kzalloc(sizeof(*trace), GFP_ATOMIC);
if (!trace)
return;