Revert "ALSA: mixer_oss: Remove some incorrect kfree_const() usages"

This reverts commit 0ffb99e62d.
This commit is contained in:
Ksawlii 2024-11-24 00:23:11 +01:00
parent c16b365896
commit 8c008c1789

View file

@ -957,8 +957,8 @@ static void snd_mixer_oss_slot_free(struct snd_mixer_oss_slot *chn)
struct slot *p = chn->private_data; struct slot *p = chn->private_data;
if (p) { if (p) {
if (p->allocated && p->assigned) { if (p->allocated && p->assigned) {
kfree(p->assigned->name); kfree_const(p->assigned->name);
kfree(p->assigned); kfree_const(p->assigned);
} }
kfree(p); kfree(p);
} }