CHROMIUM: img-rogue: fix task hang in PhysmemImportSparseDmaBuf

PhysmemImportSparseDmaBuf locks g_HashLock before dma_buf_get,
but the errReturn doesn't unlock it. Fix this by unlocking from
the error handling path.

BUG=b:181187729
TEST=run syzkaller

Change-Id: I8343cfda1fe50fb7201b3c46c9a7e981c9eee722
Signed-off-by: Luigi Santivetti <luigi.santivetti@imagination.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2740354
Tested-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Michael Green <michael.green@imagination.corp-partner.google.com>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
1 file changed