From: Michael Buesch Date: Sun, 28 Oct 2007 14:16:50 +0000 (+0100) Subject: rfkill: Use mutex_lock() at register and add sanity check X-Git-Tag: v2.6.24-rc3~155^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7319f1e6bcf04abd2eddb19747b0933a76f839ce;p=pandora-kernel.git rfkill: Use mutex_lock() at register and add sanity check Replace mutex_lock_interruptible() by mutex_lock() in rfkill_register(), as interruptible doesn't make sense there. Add a sanity check for rfkill->type, as that's used for an unchecked dereference in an array and might cause hard to debug crashes if the driver sets this to an invalid value. Signed-off-by: Michael Buesch Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed