From: Stefan Weinhuber Date: Fri, 29 Nov 2013 14:37:20 +0000 (+0100) Subject: s390/dasd: fix memory leak caused by dangling references to request_queue X-Git-Tag: v3.13-rc4~37^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2b0154e49e2b9470ae0d082128b5549cbe71152;p=pandora-kernel.git s390/dasd: fix memory leak caused by dangling references to request_queue After the call to del_gendisk, the gendisk still holds a reference to its request_queue. We must not modify the gendisks queue pointer before the put_disk call, or the gendisk_release function cannot release the reference and the memory for the request_queue structure is lost. Signed-off-by: Stefan Weinhuber Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed