From: Nikolay Aleksandrov Date: Thu, 24 Oct 2013 10:09:24 +0000 (+0200) Subject: netconsole: fix multiple race conditions X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~67^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7c6effdeffcafd792b9f880ad52e48689eea4ad;p=pandora-kernel.git netconsole: fix multiple race conditions In every netconsole option that can be set through configfs there's a race when checking for nt->enabled since it can be modified at the same time. Probably the most damage can be done by store_enabled when racing with another instance of itself. Fix all the races with one stone by moving the mutex lock around the ->store call for all options. Signed-off-by: Nikolay Aleksandrov Signed-off-by: David S. Miller --- Reading git-diff-tree failed