diff options
author | Michael Buesch <mb@bu3sch.de> | 2007-10-28 15:16:50 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-11-10 22:00:15 -0800 |
commit | 7319f1e6bcf04abd2eddb19747b0933a76f839ce (patch) | |
tree | b6b1579a2bf0bfab90736ee589fa836835ede6cc /net/dccp/feat.h | |
parent | f51359a8fb1bb00ae87051991e59d0f92d90604b (diff) |
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/dccp/feat.h')
0 files changed, 0 insertions, 0 deletions