[PATCH] usb: gspca: add a missed return-value check for do_command

2018-12-24 Thread Kangjie Lu
do_command() may fail. The fix adds the missed return value of do_command(). If it fails, returns its error code. Signed-off-by: Kangjie Lu --- drivers/media/usb/gspca/cpia1.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/media/usb/gspca/cpia1.c

Re: [PATCH v2] signal: add procfd_signal() syscall

2018-12-24 Thread Lai Jiangshan
On Tue, Dec 25, 2018 at 1:32 PM Lai Jiangshan wrote: > > Is it possible to avoid adding any syscall? > > Since holding /proc/pid/reg_file can also hold the pid. > With this guarantee, /proc/pid/uuid (universally unique identifier ) can be > introduced to identify tasks, the kernel generates > a

[PATCH] edac: unregister the mci device before free the mci memory

2018-12-24 Thread Liwei Song
this patch can fix the following kmemleak: unreferenced object 0x881022b60ee0 (size 32): comm "udevd", pid 262, jiffies 4294709066 (age 1410.265s) hex dump (first 32 bytes): 00 7c e8 18 10 88 ff ff 00 74 e8 18 10 88 ff ff .|...t.. 00 70 e8 18 10 88 ff ff 00 00 00 00 00 00

Re: [PATCH v7 1/2] dmaengine: 8250_mtk_dma: add MediaTek uart DMA support

2018-12-24 Thread Nicolas Boichat
Not a full review, a few comments below. Thanks, On Tue, Dec 25, 2018 at 9:27 AM Long Cheng wrote: > > In DMA engine framework, add 8250 uart dma to support MediaTek uart. > If MediaTek uart enabled(SERIAL_8250_MT6577), and want to improve > the performance, can enable the function. > >

[PATCH] bpf: fix missing checks of the return value of check_reg_arg

2018-12-24 Thread Kangjie Lu
check_reg_arg() may fail. This fix inserts checks for its return value. If check_reg_arg() fails, issues an error message. Signed-off-by: Kangjie Lu --- kernel/bpf/verifier.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/kernel/bpf/verifier.c

Re: [PATCH] bpf: fix missing checks of the return value of check_reg_arg

2018-12-24 Thread Alexei Starovoitov
On Tue, Dec 25, 2018 at 01:17:10AM -0600, Kangjie Lu wrote: > check_reg_arg() may fail. This fix inserts checks for its return value. > If check_reg_arg() fails, issues an error message. > > Signed-off-by: Kangjie Lu > --- > kernel/bpf/verifier.c | 15 --- > 1 file changed, 12

[PATCH] ethernet: (80003es2lan) fix missing checks for return value of reg write

2018-12-24 Thread Kangjie Lu
e1000_write_kmrn_reg_80003es2lan() may fail. The fix checks its return value and returns with its error code if it fails. Signed-off-by: Kangjie Lu --- drivers/net/ethernet/intel/e1000e/80003es2lan.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v14 2/5] x86/boot: Introduce efi_get_rsdp_addr() to find RSDP from EFI table

2018-12-24 Thread Chao Fan
On Mon, Dec 17, 2018 at 06:36:05PM +0100, Ingo Molnar wrote: > >* Ingo Molnar wrote: > >> > + if (!(efi_guidcmp(guid, ACPI_TABLE_GUID))) >> > + rsdp_addr = (acpi_physical_address)table; >> > + else if (!(efi_guidcmp(guid, ACPI_20_TABLE_GUID))) >> > +

Re: [PATCH RESEND v8 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller

2018-12-24 Thread Liang Yang
Hi Martin, On 2018/12/23 1:07, Martin Blumenstingl wrote: Hi Jianxin, Hi Liang, On Fri, Dec 21, 2018 at 12:45 PM Jianxin Pan wrote: From: Liang Yang Add initial support for the Amlogic NAND flash controller which found in the Meson-GXBB/GXL/AXG SoCs. Signed-off-by: Liang Yang

[PATCH] ethernet: (niu) fix missing checks of niu_pci_eeprom_read

2018-12-24 Thread Kangjie Lu
niu_pci_eeprom_read() may fail, so we should check its return value before using the read data. Signed-off-by: Kangjie Lu --- drivers/net/ethernet/sun/niu.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/sun/niu.c

<    1   2   3   4