ALSA: line6: Fix POD sysfs attributes segfault
authorAndrej Krutak <dev@andree.sk>
Thu, 18 Aug 2016 21:52:12 +0000 (23:52 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Aug 2016 09:37:31 +0000 (11:37 +0200)
commitb027d11263836a0cd335520175257dcb99b43757
tree05d4f85a9f8f95effe0aa827cb70c2ac2599e057
parentadc8a43a6d6688272ebffa81789fa857e603dec6
ALSA: line6: Fix POD sysfs attributes segfault

The commit 02fc76f6a changed base of the sysfs attributes from device to card.
The "show" callbacks dereferenced wrong objects because of this.

Fixes: 02fc76f6a7db ('ALSA: line6: Create sysfs via snd_card_add_dev_attr()')
Cc: <stable@vger.kernel.org> # v4.0+
Reviewed-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Andrej Krutak <dev@andree.sk>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/pod.c