From: David Woodhouse Date: Mon, 3 Dec 2007 12:46:12 +0000 (+0000) Subject: [MTD] Always initialise mutex in new mtd_blktrans_dev. X-Git-Tag: v2.6.25-rc1~296^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce37ab42ad8b38ef2f36c31c6b4c39b87f36b792;p=pandora-kernel.git [MTD] Always initialise mutex in new mtd_blktrans_dev. We were only initialising the mutex in the case where the new device was automatically allocated the highest minor number. If the caller specified a minor number, or if it filled in a free slot which was made by a previous device deregistering, the mutex wouldn't get initialised when we jumped out of the loop. Reported by Monte Copeland Signed-off-by: David Woodhouse --- Reading git-diff-tree failed