summaryrefslogtreecommitdiff
path: root/net/unix
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2007-10-28 14:16:50 (GMT)
committerDavid S. Miller <davem@sunset.davemloft.net>2007-11-11 06:00:15 (GMT)
commit7319f1e6bcf04abd2eddb19747b0933a76f839ce (patch)
treeb6b1579a2bf0bfab90736ee589fa836835ede6cc /net/unix
parentf51359a8fb1bb00ae87051991e59d0f92d90604b (diff)
downloadlinux-fsl-qoriq-7319f1e6bcf04abd2eddb19747b0933a76f839ce.tar.xz
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 <mb@bu3sch.de> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions