pktcdvd: fix setting of 'ret' error return for a few cases
authorJens Axboe <axboe@kernel.dk>
Thu, 16 Aug 2018 20:09:28 +0000 (14:09 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 16 Aug 2018 20:09:28 +0000 (14:09 -0600)
commit566484a9e84c89d9875e8d5d1aac3dbc2d8f0ff4
treec8452f6d7923998e362ddf3353e6a4ab082f04f7
parent599d067dd3c1b9697b786c992b17cd6529c0459c
pktcdvd: fix setting of 'ret' error return for a few cases

We initialize it to -ENOMEM, but then later overwrite it. After
overwriting, we don't set it again for two later failure cases.

Reported-by: Jason Wood <jasonwood2031@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/pktcdvd.c