[PATCH] Fix buffer overflow in iomux_replace_device()

2021-04-23 Thread Yuichiro Goto
Use of strcat() against an uninitialized buffer would lead to buffer overflow. This patch fixes it. Signed-off-by: Yuichiro Goto Cc: Peter Robinson Cc: Andy Shevchenko Cc: Nicolas Saenz Julienne --- This patch seems to solve the boot problem on a 32-bit mode RPi3 with a USB keyboard

[PATCH v2] IOMUX: Fix buffer overflow in iomux_replace_device()

2021-04-23 Thread Yuichiro Goto
Use of strcat() against an uninitialized buffer would lead to buffer overflow. This patch fixes it. Signed-off-by: Yuichiro Goto Cc: Peter Robinson Cc: Andy Shevchenko Cc: Nicolas Saenz Julienne --- Changes for v2: - Add "IOMUX" in title common/iomux.c | 5 - 1 file

[PATCH v3] IOMUX: Fix buffer overflow in iomux_replace_device()

2021-04-25 Thread Yuichiro Goto
Use of strcat() against an uninitialized buffer would lead to buffer overflow. This patch fixes it. Fixes: 694cd5618c ("IOMUX: Introduce iomux_replace_device()") Signed-off-by: Yuichiro Goto Cc: Peter Robinson Cc: Andy Shevchenko Cc: Nicolas Saenz Julienne --- Changes for v3: - A

Re: [PATCH v2] IOMUX: Fix buffer overflow in iomux_replace_device()

2021-04-25 Thread Yuichiro Goto
On Fri, Apr 23, 2021 at 10:09 PM Andy Shevchenko wrote: > > On Fri, Apr 23, 2021 at 05:08:05PM +0900, Yuichiro Goto wrote: > > Use of strcat() against an uninitialized buffer would lead > > to buffer overflow. This patch fixes it. > > Thanks for report! > >

[PATCH] imx: imx6ull: fix pinmux sel_input value for uart5 pins

2021-03-28 Thread Yuichiro Goto
second one is fixed by the previous commit, fix the rest. Signed-off-by: Yuichiro Goto --- arch/arm/include/asm/arch-mx6/mx6ull_pins.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/mx6ull_pins.h b/arch/arm/include/asm/arch-mx6

[U-Boot] [PATCH] dm: mmc: fsl_esdhc: Fix card detection

2018-12-07 Thread Yuichiro Goto
Card detection is not working properly because fsl_esdhc_get_cd() always returns true since commit 653282b5672c ("dm: mmc: fsl_esdhc: Update to support MMC operations"). This patch fixes it. Signed-off-by: Yuichiro Goto --- drivers/mmc/fsl_esdhc.c | 1 - 1 file changed, 1 deletio

[U-Boot] [PATCH] ARM: start.S: fix typo

2016-02-25 Thread Yuichiro Goto
Fix typo in comment about position of 'A' bit in several start.S. Signed-off-by: Yuichiro Goto --- arch/arm/cpu/arm1136/start.S |2 +- arch/arm/cpu/arm1176/start.S |2 +- arch/arm/cpu/arm920t/start.S |2 +- arch/arm/cpu/arm926ejs/start.S |2 +- arch/arm/cp