u-boot/drivers
Peng Fan c1d1e9d677 pinctrl: imx: fix memory leak
Each time set_state is called, a new piece memory will
be allocated for pin_data, but not freed, this will
incur memory leak.

When error, the devm API could not free memory automatically.
So need call devm_kfree when error.

Issue reported by Coverity

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefan Agner <stefan.agner@toradex.com>
Cc: Stefano Babic <sbabic@denx.de>
2017-05-18 11:24:34 +02:00
..
adc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
bios_emulator bios_emulator: Fix cast for 64-bit compilation 2016-10-11 11:55:33 +08:00
block drivers: block: dwc_ahci: Implement a driver for Synopsys DWC sata device 2017-05-09 12:14:16 -06:00
bootcount Blackfin: Remove 2017-04-05 13:52:01 -04:00
clk Merge git://git.denx.de/u-boot-rockchip 2017-05-10 17:40:11 -04:00
core dm: core: Add DM_FLAG_OS_PREPARE flag 2017-05-17 17:13:06 +08:00
cpu cpu: add CPU driver for Broadcom MIPS SoCs 2017-05-10 16:16:09 +02:00
crypto Merge git://git.denx.de/u-boot-fsl-qoriq 2017-04-18 11:36:06 -04:00
ddr Merge git://git.denx.de/u-boot-fsl-qoriq 2017-04-18 11:36:06 -04:00
demo dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
dfu common: dfu: ignore reset for spl-dfu 2017-05-12 08:37:09 -04:00
dma treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
firmware sysreset: psci: support system reset in a generic way with PSCI 2017-04-18 10:29:19 -04:00
fpga FPGA: drivers/fpga/ivm_core.c: incorrect printf 2017-04-18 10:29:23 -04:00
gpio gpio: 74x164: make oe-pins optional 2017-05-18 11:24:34 +02:00
hwmon mailaddr: Update mail address 2016-01-27 15:32:05 +01:00
i2c Merge branch 'master' of git://git.denx.de/u-boot-i2c 2017-05-15 13:01:26 -04:00
input dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
led dm: led: add BCM6358 led driver 2017-05-10 16:16:09 +02:00
mailbox dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
memory memory: Move TI_AEMIF config to KCONFIG 2016-04-18 17:11:43 -04:00
misc i2c_eeprom: add read and write functions 2017-05-10 13:37:22 -06:00
mmc x86: Convert MMC to driver model 2017-05-17 17:13:06 +08:00
mtd fix: nand: pxa3xx: Remove hardcode values from the driver 2017-05-09 13:38:18 +02:00
net net: fec_mxc: specify the registered eth index by dev_id 2017-05-18 11:23:31 +02:00
pch dm: Use dm_scan_fdt_dev() directly where possible 2016-07-27 14:15:54 -06:00
pci x86: pci: Allow conditionally run VGA rom in S3 2017-05-17 17:11:46 +08:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
phy Merge git://git.denx.de/u-boot-dm 2017-05-09 16:11:36 -04:00
pinctrl pinctrl: imx: fix memory leak 2017-05-18 11:24:34 +02:00
power power: twl4030: Add imply CMD_POWEROFF when TWL4030 is enabled 2017-05-15 13:00:27 -04:00
pwm dm: sandbox: pwm: add test for pwm_set_invert() 2017-05-10 13:37:21 -06:00
qe armv7: ls1021a: Drop macro CONFIG_LS102XA 2017-04-17 09:03:30 -07:00
ram dm: ram: remove unneeded brcm,bcm63268-mc id 2017-05-12 13:20:03 +02:00
remoteproc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
reset dm: reset: add BCM6345 reset driver 2017-05-10 16:16:09 +02:00
rtc rtc: Add DM support to ds1307 2017-05-08 11:57:28 -04:00
serial serial: serial-uclass: Use force parameter in stdio_deregister_dev() 2017-05-17 17:13:06 +08:00
soc Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi spi: kconfig: add soft spi Kconfig entry 2017-05-18 11:24:34 +02:00
spmi dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
sysreset sysreset: add syscon-reboot driver 2017-05-10 16:16:09 +02:00
thermal thermal: imx: fix calculation 2017-05-18 11:23:31 +02:00
timer drivers: timer: Introduce ARC timer driver 2017-03-29 07:38:11 +02:00
tpm lib: tpm: Add command to list resources 2017-03-26 13:22:58 -06:00
twserial
usb Kconfig: OMAP: USB: Migrate CONFIG_USB_EHCI_OMAP to Kconfig 2017-05-15 13:00:26 -04:00
video sunxi: video: Split out TVE code 2017-05-15 21:22:24 +02:00
watchdog watchdog: Migrate OMAP_WATCHDOG to Kconfig 2017-05-15 10:40:02 -04:00
Kconfig drivers: phy: add generic PHY framework 2017-05-09 12:14:16 -06:00
Makefile mmc: descend into drivers/mmc only when CONFIG_MMC is enabled 2017-05-15 18:28:23 +09:00