control: use reference-counted pid
authorClemens Ladisch <clemens@ladisch.de>
Mon, 2 Nov 2009 08:35:44 +0000 (09:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Nov 2009 13:32:06 +0000 (14:32 +0100)
Instead of storing the PID number, take a reference to the task's pid
structure.  This protects against duplicates due to PID overflows, and
using pid_vnr() ensures that the PID returned by snd_ctl_elem_info() is
correct as seen from the current namespace.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

No differences found