Skip to content
Commit 56adf7e8 authored by Dan Williams's avatar Dan Williams
Browse files

shdma: fix initialization error handling



1/ Error handling code following a kzalloc should free the allocated data.
2/ Report an error when no platform data is detected

Both problems fixed by moving the platform data check before the allocation,
and allows a goto to be killed.

Reported-by: default avatarJulia Lawall <julia@diku.dk>
Acked-by: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 49954c15
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment