]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: line6: Fix POD sysfs attributes segfault
authorAndrej Krutak <dev@andree.sk>
Thu, 18 Aug 2016 21:52:12 +0000 (23:52 +0200)
committerSasha Levin <alexander.levin@verizon.com>
Wed, 31 Aug 2016 23:21:09 +0000 (19:21 -0400)
commitbdd62ec6d873be9e3bcdc34d2deb45a541873650
tree55431f45baf307f787021a8a56e773e37ee75da4
parent571d36168dc246837e96ce40a7e535f1b70622e6
ALSA: line6: Fix POD sysfs attributes segfault

[ Upstream commit b027d11263836a0cd335520175257dcb99b43757 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
sound/usb/line6/pod.c