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
parent
7eca37dee9
commit
e2aa56b951
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue