Corrently handle return code in blk_end_request_x
This was caught under Debian Lenny builds because they are one of the few/only current distros based on a 2.6.26 kernel. In one of the build conditionals I accidently failed to assign the return code to rc before returning.
This commit is contained in:
parent
7cb1dcada5
commit
fc3e47c6d4
|
@ -125,7 +125,7 @@ blk_end_request_x(struct request *req, int error, unsigned int nr_bytes)
|
||||||
bool rc;
|
bool rc;
|
||||||
|
|
||||||
spin_lock_irq(q->queue_lock);
|
spin_lock_irq(q->queue_lock);
|
||||||
__blk_end_request_x(req, error, nr_bytes);
|
rc = __blk_end_request_x(req, error, nr_bytes);
|
||||||
spin_unlock_irq(q->queue_lock);
|
spin_unlock_irq(q->queue_lock);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|
Loading…
Reference in New Issue