OSDN Git Service

pinctrl: tegra-xusb: Don't leak configurations
authorThierry Reding <treding@nvidia.com>
Thu, 16 Oct 2014 10:12:22 +0000 (12:12 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 28 Oct 2014 15:59:31 +0000 (16:59 +0100)
commitc61c2d7071d865adc3bbd92dee670bcf7bf56099
tree55f3badfcaecde65f687df2af6c7717d93f15ab1
parent9067bbe5989c39bd4d482edfd4d38ad99d5b081f
pinctrl: tegra-xusb: Don't leak configurations

The pinctrl config helpers make a separate copy of the configuration, so
callers must make sure to free any dynamically allocated memory that was
used to store it.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-tegra-xusb.c