From: Stefan Haberland Date: Fri, 26 Feb 2010 21:37:47 +0000 (+0100) Subject: [S390] dasd: fix refcounting. X-Git-Tag: v2.6.34-rc1~268^2~9 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=589c74d5076dd1bde13a5a36d97ca79be8bd72b2;p=pandora-kernel.git [S390] dasd: fix refcounting. The function dasd_device_from_cdev returns a reference to the dasd device and increases the refcount by one. If an exception occurs, the refcount was not decreased in all cases e.g. in dasd_discipline_show. Prevent the offline processing from hang by correcting two functions to decrease the refcount even if an error occured. Signed-off-by: Stefan Haberland Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed