u-boot-brain/drivers
Przemyslaw Marczak f597fc3d4c dfu: dfu_get_buf: check the value of env dfu_bufsiz before use
In function dfu_get_buf(), the size of allocated buffer could
be defined by the env variable. The size from this variable
was passed for memalign() without checking its value.
And the the memalign will return non null pointer for size 0.

This could possibly cause data abort, so now the value of var
is checked before use. And if this variable is set to 0 then
the default size will be used.

This commit also changes the base passed to simple_strtoul()
to 0. Now decimal and hex values can be used for the variable
dfu_bufsiz.

Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Tested-by: Lukasz Majewski <l.majewski@samsung.com>
[TestHW: Exynos4412-Trats2]
2014-12-18 12:26:06 +01:00
..
bios_emulator bios_emulator: Correct ordering of includes 2014-12-13 15:08:04 -07:00
block Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2014-12-10 09:07:25 -05:00
bootcount qe: move immap_qe.h from arch directory into common directory 2014-07-22 16:25:54 -07:00
core dm: device: Add newline to debug() messages 2014-12-11 13:18:43 -07:00
crypto crypto/fsl: Add command for encapsulating/decapsulating blobs 2014-10-16 14:20:40 -07:00
ddr/fsl fsl/sleep: updated the deep sleep framework for QorIQ platforms 2014-12-11 09:41:18 -08:00
demo kbuild: refactor some makefiles 2014-09-24 18:30:29 -04:00
dfu dfu: dfu_get_buf: check the value of env dfu_bufsiz before use 2014-12-18 12:26:06 +01:00
dma dma: keystone_nav: remove spurious qm_cfg verification 2014-11-06 11:04:39 -05:00
fpga fs: API changes enabling extra parameter to return size of type loff_t 2014-11-23 06:49:04 -05:00
gpio x86: ich6-gpio: Move setup_pch_gpios() to board support codes 2014-12-13 22:32:04 -07:00
hwmon kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
i2c dm: i2c: tegra: Convert to driver model 2014-12-11 13:18:44 -07:00
input tegra: make local functions static 2014-10-25 07:27:37 -04:00
memory ARM: keystone: aemif: move aemif driver to drivers/memory/ti-aemif.c 2014-06-19 17:53:58 -04:00
misc x86: Add a simple superio driver for SMSC LPC47M 2014-12-13 22:32:05 -07:00
mmc mmc: dw_mmc: Use active DDR mode flag 2014-12-12 21:09:01 +02:00
mtd sf: Enable byte program support 2014-12-13 15:08:04 -07:00
net net/phy: enable serdes auto-negotiation for vsc8514 phy 2014-12-05 08:06:15 -08:00
pci arm: ls102xa: Update PCIe dts node status 2014-12-11 09:35:56 -08:00
pcmcia kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
power dm: i2c: tegra: Convert to driver model 2014-12-11 13:18:44 -07:00
pwm pwm, imx6: add support for pwm modul on imx6 2014-07-23 12:25:42 +02:00
qe u_qe: add u_qe_upload_firmware for u_qe 2014-11-19 12:56:19 -08:00
rtc Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
serial dm: serial_pl01x: Add missing private data size 2014-12-11 13:18:41 -07:00
soc soc: keystone_serdes: generalize configuration mechanism 2014-10-23 11:27:28 -04:00
sound kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
spi x86: ich-spi: Add Intel Tunnel Creek SPI controller support 2014-12-13 22:32:05 -07:00
thermal thermal: imx_thermal: Do not display calibration data 2014-12-01 10:20:18 +01:00
tpm Replace <compiler.h> with <linux/compiler.h> 2014-12-08 09:35:46 -05:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb gadget: f_thor: check pointers before use in download_tail() 2014-12-18 12:26:06 +01:00
video Merge git://git.denx.de/u-boot-x86 2014-12-01 15:24:07 -05:00
watchdog kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Kconfig kconfig: add blank Kconfig files 2014-09-24 18:30:28 -04:00
Makefile Merge branch 'master' of git://git.denx.de/u-boot-fsl-qoriq 2014-11-26 11:23:26 -05:00