Skip to contentSkip to conversation

sound/soc/soc-core.c:4139:3-8: WARNING: invalid free of devm_ allocated data

PATCH New Fengguang Wu 1 participant 1 message Aug 3, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 16/16 sound/soc/soc-core.c:4139:3-8: WARNING: invalid free of devm_ allocated data

Hi Mark,

There are coccinelle warnings in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
head:   ac190c76680cde6ce379b6be5baf89a970ea13d4
commit: ac190c76680cde6ce379b6be5baf89a970ea13d4 [16/16] Merge tag 'asoc-3.6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus

All coccinelle warnings:

+ sound/soc/soc-core.c:4139:3-8: WARNING: invalid free of devm_ allocated data sound/soc/soc-core.c:4148:3-8: WARNING: invalid free of devm_ allocated data

vim +4139 sound/soc/soc-core.c
4136 dev_err(card->dev,
4137 "Property '%s' index %d could not be read: %d\n",
4138 propname, 2 * i, ret);

Quoted 1 line

4139 kfree(routes);

4140 return -EINVAL;
4141 }
4142 ret = of_property_read_string_index(np, propname,

---
0-DAY kernel build testing backend Open Source Technology Centre
Fengguang Wu <[email protected]> Intel Corporation