2011-12-04 14:30:16

by Elias, Ilan

[permalink] [raw]
Subject: NFC: mutex_lock is called in atomic_notifier_chain callback

Hi Lauro, Samuel, Aloisio,

I think there might be a problem in the netlink notifier in the NFC subsystem.

The function mutex_lock (which might sleep) is called in the function nfc_genl_rcv_nl_event.
As far as I understand, the function nfc_genl_rcv_nl_event can be executed in atomic context (since it's registered via atomic_notifier_chain_register in af_netlink.c).

I'll appreciate your comments on this issue.

Thanks & BR,
Ilan