Revert "ALSA: mixer_oss: Remove some incorrect kfree_const() usages"
This reverts commit 0ffb99e62d
.
This commit is contained in:
parent
c16b365896
commit
8c008c1789
1 changed files with 2 additions and 2 deletions
|
@ -957,8 +957,8 @@ static void snd_mixer_oss_slot_free(struct snd_mixer_oss_slot *chn)
|
|||
struct slot *p = chn->private_data;
|
||||
if (p) {
|
||||
if (p->allocated && p->assigned) {
|
||||
kfree(p->assigned->name);
|
||||
kfree(p->assigned);
|
||||
kfree_const(p->assigned->name);
|
||||
kfree_const(p->assigned);
|
||||
}
|
||||
kfree(p);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue