summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-11-14 18:35:46 +0400
committerTakashi Iwai <tiwai@suse.de>2013-11-14 20:22:45 +0400
commit32b8544296b944b204b33f9837701d4d0b9adefe (patch)
tree307ee25de70ac19e9fa93d2e231088c12ce583ef /crypto
parent6408eac2665955343cd0e4bcd7d6237ce39611ed (diff)
downloadlinux-32b8544296b944b204b33f9837701d4d0b9adefe.tar.xz
ALSA: jack: Unregister input device at disconnection
The recent change in sysfs triggered a kernel WARNING at unloading a sound driver like WARNING: CPU: 3 PID: 2247 at fs/sysfs/group.c:214 sysfs_remove_group+0xe8/0xf0() sysfs group ffffffff81ab7b20 not found for kobject 'event14' for each jack instance. It's because the unregistration of jack input device is done in dev_free callback, which is called after snd_card_disconnect(). Since device_unregister(card->card_dev) is called in snd_card_disconnect(), the whole sysfs entries belonging to card->card_dev have been already removed recursively. Thus this results in a warning as input_unregister_device() yet tries to unregister the already removed sysfs entry. For fixing this mess, we need to unregister the jack input device at dev_disconnect callback so that it's called before unregistering the card->card_dev. Reviwed-by: Mark Brown <broonie@linaro.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions