updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / linux-fedora / block-stray-block-put-after-teardown.patch
blobf4bf9c40c7092c19954bed9f535b15c12b394656
1 --- linux-2.6.39.noarch/block/elevator.c~ 2011-08-09 10:07:41.532774872 -0400
2 +++ linux-2.6.39.noarch/block/elevator.c 2011-08-09 10:07:56.131724173 -0400
3 @@ -815,7 +815,7 @@ void elv_completed_request(struct reques
4 */
5 if (blk_account_rq(rq)) {
6 q->in_flight[rq_is_sync(rq)]--;
7 - if ((rq->cmd_flags & REQ_SORTED) &&
8 + if ((rq->cmd_flags & REQ_SORTED) && e->ops &&
9 e->ops->elevator_completed_req_fn)
10 e->ops->elevator_completed_req_fn(q, rq);