From: Chao Yu Date: Thu, 23 Apr 2015 16:47:44 +0000 (-0600) Subject: elevator: fix double release of elevator module X-Git-Tag: omap-for-v4.2/omap1-v2~18^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8406a4d56ea94d1d91f62cab3bed15399bac73cb;p=pandora-kernel.git elevator: fix double release of elevator module Our issue is descripted in below call path: ->elevator_init ->elevator_init_fn ->{cfq,deadline,noop}_init_queue ->elevator_alloc ->kzalloc_node fail to call kzalloc_node and then put module in elevator_alloc; fail to call elevator_init_fn and then put module again in elevator_init. Remove elevator_put invoking in error path of elevator_alloc to avoid double release issue. Signed-off-by: Chao Yu Reviewed-by: Jeff Moyer Signed-off-by: Jens Axboe --- Reading git-diff-tree failed