From: Alessandro Rubini Date: Tue, 16 Jul 2013 10:58:01 +0000 (+0200) Subject: FMC: fix locking in sample chardev driver X-Git-Tag: v3.12-rc1~185^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=783c2fb1b8ba2f057a26f881aa452d4aa8e4b3f4;p=pandora-kernel.git FMC: fix locking in sample chardev driver The fmc-chardev module was over-locking, by calling misc register/unregister while holding its spinlock. This reported a "scheduling while atomic" error. Since the misc driver already serializes operations internally, this commit downgrades the fmc-chardev lock to just cover its own list. Reported-by: Sasha Levin Reported-by: Fengguang Wu Signed-off-by: Alessandro Rubini Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed