Fix potential null pointer dereference on verify and requeue events
authorJens Axboe <axboe@kernel.dk>
Tue, 8 Jan 2013 20:02:14 +0000 (21:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Jan 2013 20:02:14 +0000 (21:02 +0100)
commitfbccf46c939c9fee9f738da31c2e22791be5eab7
treeb06369d4639d8ae4dec114c3ea7627a7dcde2972
parenta28b019dcb27e71037c4393f7272fccebcd150f5
Fix potential null pointer dereference on verify and requeue events

We clear io_u to NULL, but later we derefence io_u to check
the data direction. Do as we do in the main IO loop - store
the data direction in a local variable, and use that after
the main switch.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
backend.c