Skip to content
Snippets Groups Projects
user avatar
Arend van Spriel authored
Though it's unlikely, di may be null, so we can't dereference
di->dma.dmactrlflags until we've checked it.

Move this de-reference after the check, and adjust the error
message to not require de-referencing di.

This is based upon Julia's original patch:
<1319846297-2985-2-git-send-email-julia@diku.dk>

Reported-by: default avatarJulia Lawall <julia@diku.dk>
Acked-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJulian Calaby <julian.calaby@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
ae8e4672
History
Name Last commit Last update