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:
Brian Behlendorf 2010-07-14 12:35:24 -07:00
parent 7cb1dcada5
commit fc3e47c6d4
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ blk_end_request_x(struct request *req, int error, unsigned int nr_bytes)
bool rc;
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);
return rc;