diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-11-07 12:39:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-17 13:18:51 -0800 |
commit | f3ae49909bdf42b42f6ca619ff910366536e0f84 (patch) | |
tree | cdfc0a237c4f1fb04776ddec3baede6ba8cc1b4d /samples | |
parent | 62edb372be14b3b7d6d80eaaa99d40134b53118d (diff) |
ALSA: Add a reference counter to card instance
commit a0830dbd4e42b38aefdf3fb61ba5019a1a99ea85 upstream.
For more strict protection for wild disconnections, a refcount is
introduced to the card instance, and let it up/down when an object is
referred via snd_lookup_*() in the open ops.
The free-after-last-close check is also changed to check this refcount
instead of the empty list, too.
Reported-by: Matthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions