Re: [PATCH v2] drivers/staging: Fix styling of the comment related to SPDX-License-Identifier in vt6656/*.h

2019-03-31 Thread Mukesh Ojha
and a result of a copy paste. Reviewed-by: Mukesh Ojha But, i would want other to comment on this, whether we really want this kind of effort coming forward. or can it  be not done by some scripting? Cheers, -Mukesh --- drivers/staging/vt6656/baseband.h | 2 +- drivers/staging/vt6656

Re: [PATCH] habanalabs: remove trailing blank line from EOF

2019-03-31 Thread Mukesh Ojha
On 3/31/2019 2:15 PM, Oded Gabbay wrote: GIT does not like extra blank lines at the end of the file, so this patch removes those lines. Signed-off-by: Oded Gabbay Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- .../misc/habanalabs/include/goya/asic_reg/cpu_ca53_cfg_masks.h | 1

Re: [PATCH] i2c: isch: Remove unnecessary acpi.h include

2019-03-31 Thread Mukesh Ojha
but not the include. Remove the now-unnecessary include of . No functional change intended. Signed-off-by: Bjorn Helgaas Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- drivers/i2c/busses/i2c-isch.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-isch.c b/drivers/i

Re: [PATCH] spi: oc-tiny: fix negative loop bound error on for loop

2019-03-31 Thread Mukesh Ojha
On 3/31/2019 2:53 AM, Colin King wrote: From: Colin Ian King Currently the for-loop using an unsigned int for the loop counter which is problematic when comparing it to the signed int gt->gpio_cs_count. This is an issue because if the signed int is negative (for example, the call to of_gpio_

Re: [PATCH] spi: oc-tiny: fix negative loop bound error on for loop

2019-03-31 Thread Mukesh Ojha
On 3/31/2019 2:53 AM, Colin King wrote: From: Colin Ian King Currently the for-loop using an unsigned int for the loop counter which is problematic when comparing it to the signed int gt->gpio_cs_count. This is an issue because if the signed int is negative (for example, the call to of_gpio_

Re: [PATCH v2] tty: rocket: Fix a kernel address leak in rp_ioctl

2019-03-31 Thread Mukesh Ojha
On 3/31/2019 11:02 AM, Fuqian Huang wrote: If the cmd is RCPK_GET_STRUCT, copy_to_user will copy info to user space. As info->port.ops is the address of a constant object rocket_port_ops (assigned in init_r_port), a kernel address leakage happens. This patch sets all the pointer fields to NULL

Re: [PATCH] leds: blinkm: clean up double assignment to data->i2c_addr

2019-03-31 Thread Mukesh Ojha
-by: Mukesh Ojha Cheers, -Mukesh --- drivers/leds/leds-blinkm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/leds/leds-blinkm.c b/drivers/leds/leds-blinkm.c index 851c1920b63c..11b771fb933b 100644 --- a/drivers/leds/leds-blinkm.c +++ b/drivers/leds/leds-blinkm.c @@ -594,7 +594,6 @@ sta

Re: [PATCH] arm64/vdso: don't leak kernel addresses

2019-03-30 Thread Mukesh Ojha
int, which turns into a more discrete: vdso: 2 pages (1 code, 1 data) Fixes: ad67b74d2469d9b8 ("printk: hash addresses printed with %p") Signed-off-by: Matteo Croce Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- arch/arm64/kernel/vdso.c | 4 ++-- 1 file changed, 2 insert

Re: [PATCH] [V2] x86/asm: add __user on copy_user_handle_tail() pointers

2019-03-30 Thread Mukesh Ojha
pointers, and do the cast the other way around. But there's no absolutely right answer here, and nobody should ever use copy_user_generic() directly (ie it is very much meant to be only used as a internal helper for the cases that get the pointer annotations right). Signed-off-by: Ben Dooks

Re: [PATCH v2] trace: events: fix error directive in argument list

2019-03-30 Thread Mukesh Ojha
n->tbl->family == AF_INET6) Signed-off-by: Hariprasad Kelam Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- Changes in V2: -Divide patch to only address spare error --- include/trace/events/neigh.h | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/

Re: [PATCH 2/4] PCI: Fix comment typos

2019-03-30 Thread Mukesh Ojha
On 3/25/2019 11:44 PM, helg...@kernel.org wrote: From: Bjorn Helgaas Fix spelling errors and format function comments consistently. Changes whitespace and comments only; no functional change intended. Signed-off-by: Bjorn Helgaas Reviewed-by: Mukesh Ojha Cheers, -Mukesh

Re: [PATCH] mm: Fix build warning

2019-03-30 Thread Mukesh Ojha
On 3/30/2019 11:12 AM, Aneesh Kumar K.V wrote: mm/debug.c: In function ‘dump_mm’: include/linux/kern_levels.h:5:18: warning: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 19 has type ‘long int’ [-Wformat=] ~~~^ Signed-off-by: Aneesh Kumar K.V

Re: [PATCH] PCI: rockchip: fix bitwise operations on status and ROCKCHIP_PCIE_EP_CMD_STATUS_IS

2019-03-30 Thread Mukesh Ojha
x this by making status a u32. (Not tested). Fixes: cf590b078391 ("PCI: rockchip: Add EP driver for Rockchip PCIe controller") Signed-off-by: Colin Ian King --- drivers/pci/controller/pcie-rockchip-ep.c | 2 +- Looks valid to me. Reviewed-by: Mukesh Ojha Cheers, -Mukesh 1

Re: [PATCH] fs/binfmt_elf.c: fix GPF when dereferencing invalid interpreter

2019-03-30 Thread Mukesh Ojha
bot+0d1fcd7268b21bace...@syzkaller.appspotmail.com Fixes: 44e63c4a0263 ("fs/binfmt_elf.c: free PT_INTERP filename ASAP") --- Patch looks valid to me as interpreter may be NULL and it later get tried to dereferencing inside allow_write_access under label out_free_dentry. Reviewed-by

Re: [PATCH v2 1/2] clk:Fix divide-by-zero in divider_ro_round_rate_parent

2019-03-30 Thread Mukesh Ojha
/add check for of _get_div() in the divider_ro_round_rate_parent() Signed-off-by: nixiaoming Please fix the commit text. Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- drivers/clk/clk-divider.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/clk-divider.c b/drivers/clk

Re: [PATCH] staging: rtl8723bs: core: fix line over 80 characters warning

2019-03-29 Thread Mukesh Ojha
cmd(padapter, psta, true, false); } Get rid of this {}.fix this . Now patch looks good after Dan comment. Reviewed-by: Mukesh Ojha Cheers, -Mukesh }

Re: [PATCH v2 2/2] MAINTAINERS: Add maintainer and replacing reviewer ARM/NUVOTON NPCM

2019-03-29 Thread Mukesh Ojha
Fair Reviewed-by: Mukesh Ojha --- MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 8b305d2f2a8a..4ece87fcc166 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1893,9 +1893,10 @@ T: git git://git.kernel.org/pub/scm

Re: [PATCH] ARM: remove unused

2019-03-29 Thread Mukesh Ojha
On 3/29/2019 9:14 PM, Masahiro Yamada wrote: No one includes this. Signed-off-by: Masahiro Yamada --- Reviewed-by: Mukesh Ojha Cheers, -Mukesh Version: 5.1-rc2 arch/arm/include/asm/limits.h | 12 1 file changed, 12 deletions(-) delete mode 100644 arch/arm/include

Re: [PATCH v2 4/4] x86/uaccess: Fix implicit cast of __user pointer

2019-03-29 Thread Mukesh Ojha
(ptr)` is wrong. Since `uval` is only used once inside the macro, just get rid of __uval and use `(uval)` directly. Signed-off-by: Jann Horn Looks good to me. Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- arch/x86/include/asm/uaccess.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

Re: [PATCH v2 1/2] MAINTAINERS: fix bad pattern in ARM/NUVOTON NPCM

2019-03-29 Thread Mukesh Ojha
match the new name of this file. Fixes: 6a498e06ba22 ("MAINTAINERS: Add entry for the Nuvoton NPCM architecture") Reported-by: Joe Perches Signed-off-by: Brendan Higgins Signed-off-by: Tomer Maimon Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- MAINTAINERS | 2 +- 1 file

Re: [PATCH v1] mm: balloon: drop unused function stubs

2019-03-29 Thread Mukesh Ojha
On 3/29/2019 5:56 PM, David Hildenbrand wrote: These are leftovers from the pre-"general non-lru movable page" era. Signed-off-by: David Hildenbrand --- include/linux/balloon_compaction.h | 15 --- 1 file changed, 15 deletions(-) Reviewed-by: Mukesh Ojha Cheer

Re: [PATCH] i2c: imx: don't leak the i2c adapter on error

2019-03-29 Thread Mukesh Ojha
On 3/29/2019 6:18 PM, laurentiu.tu...@nxp.com wrote: From: Laurentiu Tudor Make sure to free the i2c adapter on the error exit path. Signed-off-by: Laurentiu Tudor Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- drivers/i2c/busses/i2c-imx.c | 4 +++- 1 file changed, 3 insertions(+), 1

Re: [PATCH] rcu: tree_stall: Correctly unlock root node in rcu_check_gp_start_stall

2019-03-29 Thread Mukesh Ojha
np_root != rnp) + /* irqs remain disabled. */ + raw_spin_unlock_rcu_node(rnp_root); Looks good as it will balance the lock .if it is the root_node, which was not there earlier, and unlock was happening without any lock on root. Reviewed-by: Mukesh Ojha C

Re: [PATCH] tick/broadcast: Fix warning about undefined tick_broadcast_oneshot_offline()

2019-03-29 Thread Mukesh Ojha
eric Weisbecker Cc: x...@kernel.org Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- kernel/time/tick-broadcast.c | 4 1 file changed, 4 insertions(+) diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c index 0283523de045..7541cbca695e 100644 --- a/kernel/time/tick-br

Re: [PATCH] clk:mmp: clk-mix.c fix divide-by-zero

2019-03-29 Thread Mukesh Ojha
On 3/29/2019 5:16 PM, nixiaoming wrote: The _get_div function has a branch with a return value of 0 Add a check on the return value of _get_div to avoid divide-by-zero Signed-off-by: nixiaoming Fix the below minor comments.. Otherwise things look good..you can take mine Reviewed-by: Mukesh

Re: [PATCH] regulator: vctrl: Remove unneeded continue statement

2019-03-29 Thread Mukesh Ojha
On 3/29/2019 7:16 AM, Axel Lin wrote: Signed-off-by: Axel Lin Yeah indeed! but where is commit text atleast a one-liner. Otherwise looks good to me. Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- drivers/regulator/vctrl-regulator.c | 4 +--- 1 file changed, 1 insertion(+), 3

Re: [PATCH v4 2/2] drivers/base/memory.c: Rename the misleading parameter

2019-03-29 Thread Mukesh Ojha
r. Signed-off-by: Baoquan He Acked-by: Michal Hocko Reviewed-by: Rafael J. Wysocki Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- drivers/base/memory.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/base/memory.c b/drivers/base/memory.c index cb

Re: [PATCH v3 1/2] mm/sparse: Clean up the obsolete code comment

2019-03-29 Thread Mukesh Ojha
On 3/29/2019 1:59 PM, Baoquan He wrote: The code comment above sparse_add_one_section() is obsolete and incorrect, clean it up and write new one. Signed-off-by: Baoquan He Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- v2->v3: Normalize the code comment to use '/**' a

Re: [PATCH] rcu: tree_plugin: Dump specified number of blocked tasks

2019-03-29 Thread Mukesh Ojha
mpact. Signed-off-by: Neeraj Upadhyay Looks good to me. Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- kernel/rcu/tree_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index 3960294..08bcd87 100644 --- a/kerne

Re: [PATCH] gpio: of: Optimize quirk checks

2019-03-29 Thread Mukesh Ojha
good to me. Reviewed-by: Mukesh Ojha Cheers, -Mukesh --- drivers/gpio/gpiolib-of.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 6a3ec575a404ed9f..3a6bb53d89dfed32 100644 --- a/drivers/gpio/gpiolib

Re: [PATCH] lib/scatterlist: Remove leftover from sg_page_iter comment

2019-03-29 Thread Mukesh Ojha
er. could have been more specific in the commit,but Looks  good to me to be removed. Reviewed-by: Mukesh Ojha -Mukesh @piter->sg will point to the sg holding this page and - * @piter->sg_pgoffset to the page's page offset within the sg. The iteration - * will stop either when a

Re: [PATCH] x86: define LOADED_MM_SWITCHING with pointer-sized number

2019-03-29 Thread Mukesh Ojha
ed-by: Mukesh Ojha -Mukesh --- arch/x86/include/asm/tlbflush.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h index f4204bf377fc..90926e8dd1f8 100644 --- a/arch/x86/include/asm/tlbflush.h +++ b/arch/x86/includ

Re: [PATCH 1/2] kernel.h: use parentheses around argument in u64_to_user_ptr()

2019-03-28 Thread Mukesh Ojha
o_user_ptr(A ? B : C)`. This currently doesn't work as intended. Fixes: f09174c501f8 ("x86: add user_atomic_cmpxchg_inatomic at uaccess.h") Signed-off-by: Jann Horn Looks good to me. Reviewed-by: Mukesh Ojha -Mukesh --- Can we take this patch through the x86 tree with the fol

Re: [PATCH] n_tty: check for negative and zero space return from tty_write_room

2019-03-28 Thread Mukesh Ojha
. Reviewed-by: Mukesh Ojha -Mukesh. --- drivers/tty/n_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 9cdb0fa3c4bf..66630787fbf9 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -550,7 +550,7 @@ static ssize_t

Re: [PATCH] irqchip/irq-ls1x: Missing error code in ls1x_intc_of_init()

2019-03-28 Thread Mukesh Ojha
it by setting appropriate error code." Fixes: 9e543e22e204 ("irqchip: Add driver for Loongson-1 interrupt controller") Signed-off-by: Dan Carpenter Other wise change looks good . Reviewed-by: Mukesh Ojha -Mukesh --- drivers/irqchip/irq-ls1x.c | 1 + 1 file changed, 1 insert

Re: [PATCH 1/3] gpio: of: Fix of_gpiochip_add() error path

2019-03-28 Thread Mukesh Ojha
: Geert Uytterhoeven Reviewed-by: Mukesh Ojha -Mukesh --- drivers/gpio/gpiolib-of.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 8b9c3ab70f6eade4..257be7bac032a855 100644 --- a/drivers/gpio/gpiolib-of.

Re: [PATCH 2/3] gpio: Fix gpiochip_add_data_with_key() error path

2019-03-28 Thread Mukesh Ojha
hip); +err_free_irqchip_mask: same here. After reviewing back and forth it looks good, apart from the naming. Please fix. Reviewed-by: Mukesh Ojha -Mukesh gpiochip_free_valid_mask(chip); err_remove_irqchip_mask: gpiochip_irqchip_free_valid_mask(chip);

Re: [PATCH 3/3] gpio: Remove obsolete comment about gpiochip_free_hogs() usage

2019-03-28 Thread Mukesh Ojha
ned-off-by: Geert Uytterhoeven Looks good to be removed. Reviewed-by: Mukesh Ojha -Mukesh --- drivers/gpio/gpiolib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index ed4da07effe0ac40..ec326bd84b1f1c50 100644 --- a/drivers/gpio/gpiol

Re: [PATCH] MIPS: SGI-IP27: Fix use of unchecked pointer in shutdown_bridge_irq

2019-03-28 Thread Mukesh Ojha
uot;MIPS: SGI-IP27: rework HUB interrupts") Reported-by: Dan Carpenter Signed-off-by: Thomas Bogendoerfer Reviewed-by: Mukesh Ojha -Mukesh --- arch/mips/sgi-ip27/ip27-irq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/mips/sgi-ip27/ip27-irq.c b/arch/m

Re: [PATCH] bpf: bpftool: convert ‘const char *’ type into 'char *' in assignment

2019-03-28 Thread Mukesh Ojha
convert 'const char *' type into 'char *' to fix the warning. Fixes:3ddeac6705aba(tools: bpftool: use 4 context mode for the NFP disasm) Signed-off-by: Bo YU Reviewed-by: Mukesh Ojha -Mukesh --- tools/bpf/bpftool/jit_disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

Re: [PATCH] vlynq: Fix uninitialized error code in probe()

2019-03-28 Thread Mukesh Ojha
On 3/28/2019 7:47 PM, Dan Carpenter wrote: The "result" variable isn't initialized on this error path. Fixes: 55e331cf7ebe ("drivers: add support for the TI VLYNQ bus") Signed-off-by: Dan Carpenter Reviewed-by: Mukesh Ojha -Mukesh --- drivers/vlynq/vlynq.c |

Re: [RESEND PATCH] scsi: qedi: Fix global-out-of-bounds bug in qedi dbg function

2019-03-28 Thread Mukesh Ojha
ch trigger global-out-of-bounds bug and may leak kernel info. Also other qedi dbg function may have the same issue, this patch fix this. Fixes: ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.") Signed-off-by: YueHaibing Reviewed-by: Mukesh Ojha -

Re: [PATCH] gpio: mockup: use simple_read_from_buffer() in debugfs read callback

2019-03-28 Thread Mukesh Ojha
, cnt); - if (rv) - return rv; - - *ppos += cnt; - return cnt; + return simple_read_from_buffer(usr_buf, size, ppos, buf, cnt); Looks good to me. Remove the unused variable. Reviewed-by: Mukesh Ojha -Mukesh } static ssize_t gpio_mockup_debugfs_write(struct file *file,

Re: Misplaced driver_sysfs_remove in really_probe?

2019-03-28 Thread Mukesh Ojha
On 3/28/2019 3:36 PM, Jiri Slaby wrote: Hi, since commit 1901fb2604fbcd53201f38725182ea807581159e Author: Kay Sievers Date: Sat Oct 7 21:55:55 2006 +0200 Driver core: fix "driver" symlink timing driver_sysfs_remove seems to be misplaced in the fail path of really_probe. When driver_s

[PATCH RESEND -next] Input: uinput - Avoid Use-After-Free with udev lock

2019-03-28 Thread Mukesh Ojha
-Id: I3bbb07589b7b6e0e1b3bea572b5eb4f6b09774d6 Signed-off-by: Mukesh Ojha Cc: Gaurav Kohli Cc: Peter Hutterer Cc: Martin Kepplinger Cc: "Paul E. McKenney" --- drivers/input/misc/uinput.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index 26ec

Re: [PATCH] drivers/fmc: remove unneeded NULL check

2019-03-28 Thread Mukesh Ojha
On 3/28/2019 2:53 PM, Ding Xiang wrote: The variable will check in debugfs_remove_recursive, so the NULL check here is not needed Signed-off-by: Ding Xiang Reviewed-by: Mukesh Ojha -Mukesh --- drivers/fmc/fmc-debug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff

[PATCH -next] Input: uinput - Avoid Use-After-Free with udev lock

2019-03-28 Thread Mukesh Ojha
-Id: I3bbb07589b7b6e0e1b3bea572b5eb4f6b09774d6 Signed-off-by: Mukesh Ojha Cc:Gaurav Kohli Cc:Peter Hutterer Cc:Martin Kepplinger Cc:"Paul E. McKenney" --- drivers/input/misc/uinput.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/input/misc/uinput.c b/drivers/input/misc/uinput.c index 26ec

Re: [PATCH v2] arch_topology: Make cpu_capacity sysfs node as ready-only

2019-03-27 Thread Mukesh Ojha
Thanks for making the change suggested. Should not this be v3. Please add version detail properly including what changes you made in which version after ---,  that makes the patch easy to review. Thanks. Mukesh On 3/28/2019 10:17 AM, Lingutla Chandrasekhar wrote: If user updates any cpu's

Re: [PATCH] arm:mm/mmu.c : Remove duplicate header

2019-03-27 Thread Mukesh Ojha
On 3/23/2019 5:04 PM, jagdsh.li...@gmail.com wrote: From: Jagadeesh Pagadala Remove duplicate headers which are included twice. Signed-off-by: Jagadeesh Pagadala Reviewed-by: Mukesh Ojha -Mukesh --- arch/arm/mm/mmu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mm

Re: [PATCH] arch:sh:mach-sh03/rtc.c : Remove duplicate header

2019-03-27 Thread Mukesh Ojha
On 3/28/2019 2:50 AM, jagdsh.li...@gmail.com wrote: From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala Reviewed-by: Mukesh Ojha -Mukesh --- arch/sh/boards/mach-sh03/rtc.c | 1 - 1 file changed, 1 deletion(-) diff --git a

Re: [PATCH] arch:sparc:kernel/uprobes.c : Remove duplicate header

2019-03-27 Thread Mukesh Ojha
On 3/28/2019 2:58 AM, jagdsh.li...@gmail.com wrote: From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala Looks good to me. but did you tested at least the compilation with these patches ? Reviewed-by: Mukesh Ojha -Mukesh

Re: [PATCH] selftests:powerpc/tm/tm-vmx-unavail.c : Remove duplicate header

2019-03-27 Thread Mukesh Ojha
On 3/28/2019 3:19 AM, jagdsh.li...@gmail.com wrote: From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala Reviewed-by: Mukesh Ojha -Mukesh --- tools/testing/selftests/powerpc/tm/tm-vmx-unavail.c | 1 - 1 file changed, 1 deletion

Re: [PATCH v2] tty:serial_core: Spelling mistake

2019-03-27 Thread Mukesh Ojha
On 3/28/2019 8:47 AM, Hariprasad Kelam wrote: fix spelling mistake "overriden" -> "overridden" This fix resolves warning reported by checkpatch tool. Signed-off-by: Hariprasad Kelam Reviewed-by: Mukesh Ojha -Mukesh --- Changes in V2: -Make co

Re: [PATCH] kernel/trace/trace.h: Remove duplicate header

2019-03-27 Thread Mukesh Ojha
On 3/28/2019 3:49 AM, jagdsh.li...@gmail.com wrote: From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala Reviewed-by: Mukesh Ojha -Mukesh --- kernel/trace/trace.h | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel

Re: [PATCH v2] arch_topology: Make cpu_capacity sysfs node as ready-only

2019-03-27 Thread Mukesh Ojha
utla Chandrasekhar Please fix the commit text minor comments. otherwise , looks good. Reviewed-by: Mukesh Ojha -Mukesh diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index edfcf8d982e4..1739d7e1952a 100644 --- a/drivers/base/arch_topology.c +++ b/driver

Re: [PATCH] arm:mach-sa1100/hackkit.c : Remove duplicate header

2019-03-27 Thread Mukesh Ojha
On 3/28/2019 12:41 AM, jagdsh.li...@gmail.com wrote: From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala Reviewed-by: Mukesh Ojha -Mukesh --- arch/arm/mach-sa1100/hackkit.c | 1 - 1 file changed, 1 deletion(-) diff --git a

Re: [PATCH -next] selinux: Make selinux_kernfs_init_security static

2019-03-27 Thread Mukesh Ojha
On 3/22/2019 7:34 PM, Yue Haibing wrote: From: YueHaibing Fix sparse warning: security/selinux/hooks.c:3389:5: warning: symbol 'selinux_kernfs_init_security' was not declared. Should it be static? Signed-off-by: YueHaibing Reviewed-by: Mukesh Ojha -Mukesh --- securi

Re: [PATCH v2 -next] ASoC: simple-card-utils: remove set but not used variable 'dai_name'

2019-03-27 Thread Mukesh Ojha
nused-but-set-parameter] It's not used since commit 0580dde59438 ("ASoC: simple-card-utils: add asoc_simple_debug_info()"), so can be removed. Signed-off-by: YueHaibing Acked-by: Kuninori Morimoto Reviewed-by: Mukesh Ojha -Mukesh --- v2: fix patch title --- sound/soc/generic/

Re: [PATCH] vc04_services: vchiq_arm: fix a NULL pointer dereference

2019-03-27 Thread Mukesh Ojha
On 3/25/2019 4:13 AM, Kangjie Lu wrote: When kzalloc fails, "platform_state->inited = 1" is a NULL pointer dereference. The fix returns VCHIQ_ERROR in case it failed to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Reviewed-by: Mukesh Ojha -Mukesh ---

Re: [PATCH v2 -next] drm/virtio: remove set but not used variable 'vgdev'

2019-03-27 Thread Mukesh Ojha
uot;Add virtio gpu driver.") Signed-off-by: YueHaibing Reviewed-by: Mukesh Ojha -Mukesh --- v2: fix patch prefix --- drivers/gpu/drm/virtio/virtgpu_ttm.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_ttm.c b/drivers/gpu/drm/virtio/virtgpu_ttm.c i

Re: [PATCH] thunderbolt: property: fix a buffer overflow and a missing check

2019-03-27 Thread Mukesh Ojha
or the return value of kzalloc, which may lead to NULL-pointer dereference. The patch fixes the two issues. Signed-off-by: Kangjie Lu Otherwise looks good. Reviewed-by: Mukesh Ojha -Mukesh --- drivers/thunderbolt/property.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-)

Re: [PATCH v3] thunderbolt: Fix to check the return value of kmemdup

2019-03-27 Thread Mukesh Ojha
On 3/26/2019 2:55 AM, Aditya Pakki wrote: uuid in add_switch is allocted via kmemdup which can fail. The patch logs the error and cleans up the allocated memory for switch. Signed-off-by: Aditya Pakki Reviewed-by: Mukesh Ojha -Mukesh --- v2: replace WARN_ONCE with tb_sw_warn, as

Re: [PATCH v3] ASoC: sirf-audio: Remove redundant of_match_node call

2019-03-27 Thread Mukesh Ojha
Signed-off-by: Aditya Pakki Reviewed-by: Mukesh Ojha -Mukesh --- v2: Move the signed by above the version change log v1: A check is unnecessary as match is never used. --- sound/soc/codecs/sirf-audio-codec.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/soc/codecs/

Re: [PATCH] MAINTAINERS: Fix Hyperv vIOMMU driver file name

2019-03-27 Thread Mukesh Ojha
On 3/26/2019 11:58 AM, lantianyu1...@gmail.com wrote: From: Lan Tianyu The Hyperv vIOMMU file name should be "hyperv-iommu.c" rather s/vIOMMU /IOMMU than "hyperv_iommu.c". This patch is to fix it. Signed-off-by: Lan Tianyu Othewise looks fine. Reviewed-by: M

Re: [PATCH] usb: u132-hcd: fix potential NULL pointer dereference

2019-03-27 Thread Mukesh Ojha
dereferences. Signed-off-by: Kangjie Lu Reviewed-by: Mukesh Ojha -Mukesh --- removed "unlikely" --- drivers/usb/host/u132-hcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index 934584f0a20a..6d5b532b03f8 100644 --- a/d

Re: [PATCH] MAINTAINERS: Fix Hyperv vIOMMU driver file name

2019-03-27 Thread Mukesh Ojha
ks good. Reviewed-by: Mukesh Ojha -Mukesh --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index e17ebf7..403247d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7175,7 +7175,7 @@ F:drivers/net/hyperv/ F:drivers/sc

Re: [PATCH] MAINTAINERS: fix the file path of uniphier-mdmac.c

2019-03-27 Thread Mukesh Ojha
On 3/26/2019 7:43 AM, Masahiro Yamada wrote: The pattern drivers/dmaengine/uniphier-mdmac.c has no match in the source tree. The correct path is drivers/dma/uniphier-mdmac.c Reported-by: Joe Perches Signed-off-by: Masahiro Yamada Reviewed-by: Mukesh Ojha -Mukesh --- MAINTAINERS

Re: [PATCH v1 1/1] MAINTAINERS: fix typo in file name

2019-03-27 Thread Mukesh Ojha
ooks  good. Reviewed-by: Mukesh Ojha -Mukesh --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 3e5a5d263f29..d2c5852a3c8d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2007,7 +2007,7 @@ F:drivers/i2c/busses/i2c-qup.c F:d

Re: [PATCH v3] PCI: xilinx: Check for __get_free_pages() failure

2019-03-27 Thread Mukesh Ojha
On 3/26/2019 3:49 AM, Kangjie Lu wrote: If __get_free_pages() fails, the patch returns -ENOMEM to avoid NULL pointer dereference. Signed-off-by: Kangjie Lu Reviewed-by: Mukesh Ojha -Mukesh --- v3: remove "unlikely", as suggested by Bjorn Helgaas. v2: caller is redefined to

Re: [PATCH] iio: adc: stm32: fix sleep inside atomic section when using DMA

2019-03-27 Thread Mukesh Ojha
On 3/27/2019 6:21 PM, Mukesh Ojha wrote: On 3/26/2019 6:14 PM, Fabrice Gasnier wrote: Enabling CONFIG_DEBUG_ATOMIC_SLEEP=y triggers this BUG message: BUG: sleeping function called from invalid context at kernel/irq/chip.c... Call stack is as follows: - __might_sleep - handle_nested_irq

Re: [PATCH] iio: adc: stm32: fix sleep inside atomic section when using DMA

2019-03-27 Thread Mukesh Ojha
") Signed-off-by: Fabrice Gasnier Reviewed-by: Mukesh Ojha -Mukesh --- drivers/iio/adc/Kconfig | 1 + drivers/iio/adc/stm32-adc.c | 32 ++-- 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kc

Re: [PATCH] Yama: mark local symbols as static

2019-03-27 Thread Mukesh Ojha
On 3/27/2019 4:38 AM, Jann Horn wrote: sparse complains that Yama defines functions and a variable as non-static even though they don't exist in any header. Fix it by making them static. Signed-off-by: Jann Horn Reviewed-by: Mukesh Ojha --- security/yama/yama_lsm.c | 6 +++--

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-27 Thread Mukesh Ojha
On 3/9/2019 10:49 AM, Kangjie Lu wrote: get_skb may fail and return NULL. The fix returns "ENOMEM" when it fails to avoid NULL dereference. Signed-off-by: Kangjie Lu Reviewed-by: Mukesh OJha --- drivers/infiniband/hw/cxgb4/cm.c | 3 +++ 1 file changed, 3 insertions(+) di

Re: [PATCH] infiniband: cxgb4: fix a potential NULL pointer dereference

2019-03-27 Thread Mukesh Ojha
On 3/9/2019 10:49 AM, Kangjie Lu wrote: get_skb may fail and return NULL. The fix returns "ENOMEM" when it fails to avoid NULL dereference. Signed-off-by: Kangjie Lu Reviewed-by: Mukesh Ojha --- drivers/infiniband/hw/cxgb4/cm.c | 3 +++ 1 file changed, 3 insertions(+) di

Re: [PATCH] sh:mach-dreamcast/irq.c : Remove duplicate header

2019-03-27 Thread Mukesh Ojha
On 3/23/2019 2:32 AM, jagdsh.li...@gmail.com wrote: From: Jagadeesh Pagadala Remove duplicate header which is included twice. Signed-off-by: Jagadeesh Pagadala Reviewed-by: Mukesh Ojha --- arch/sh/boards/mach-dreamcast/irq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch

[PATCH] Yama: mark function as static

2019-03-27 Thread Mukesh Ojha
Sparse complains yama_task_prctl can be static. Fix it by making it static. Signed-off-by: Mukesh Ojha --- security/yama/yama_lsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c index 57cc607..9c5a15b 100644 --- a

Re: [PATCH] ARM: socfpga: Fix object reference leaks in socfpga_setup_ocram_self_refresh

2019-03-27 Thread Mukesh Ojha
On 3/27/2019 5:23 AM, Huang Zijiang wrote: The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Signed-off-by: Huang Zijiang --- arch/arm/mach-socfpga/pm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] firmware: arm_scmi: Fix leak in scmi_mailbox_check

2019-03-26 Thread Mukesh Ojha
On 3/25/2019 11:07 PM, Steven Price wrote: of_parse_phandle_with_args() requires the caller to call of_node_put() on the returned args->np pointer. Otherwise the reference count will remain incremented. However, in this case, since we don't actually use the returned pointer, we can simply pass

Re: [PATCH] mfd: fix a potential NULL pointer dereference

2019-03-25 Thread Mukesh Ojha
On 3/25/2019 1:26 PM, Lee Jones wrote: On Fri, 22 Mar 2019, Kangjie Lu wrote: Hi Lee Jones, Can you review this patch? Don't poke. I have a very long list of reviews on my TODO. Poking only surfaces your patch to the top of my Inbox, and since I review patches in reverse chronological order

Re: [PATCH -next] ASoC: simple-card-utils: remove set but not used variable ''

2019-03-25 Thread Mukesh Ojha
On 3/23/2019 7:38 AM, YueHaibing wrote: Fixes gcc '-Wunused-but-set-variable' warning: sound/soc/generic/simple-card-utils.c: In function 'asoc_simple_parse_clk': sound/soc/generic/simple-card-utils.c:164:18: warning: parameter 'dai_name' set but not used [-Wunused-but-set-parameter] It's n

Re: [PATCH] sound: codecs: fix a potential NULL pointer dereference

2019-03-24 Thread Mukesh Ojha
. Thanks, Mukesh On 3/25/2019 12:15 PM, Mukesh Ojha wrote: On 3/25/2019 4:42 AM, Kangjie Lu wrote: In case devm_kzalloc fails, the patch returns -ENOMEM to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu ---   sound/soc/codecs/rt5663.c | 2 ++   1 file changed, 2 insertions

Re: [PATCH] sound: codecs: fix a potential NULL pointer dereference

2019-03-24 Thread Mukesh Ojha
On 3/25/2019 4:42 AM, Kangjie Lu wrote: In case devm_kzalloc fails, the patch returns -ENOMEM to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- sound/soc/codecs/rt5663.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/codecs/rt5663.c b/sound/soc/cod

Re: [PATCH] dccp: Fix memleak in __feat_register_sp

2019-03-22 Thread Mukesh Ojha
On 3/21/2019 7:40 PM, Yue Haibing wrote: From: YueHaibing If dccp_feat_push_change fails, we forget free the mem which is alloced by kmemdup in dccp_feat_clone_sp_val. Reported-by: Hulk Robot Fixes: e8ef967a54f4 ("dccp: Registration routines for changing feature values") Signed-off-by: YueH

Re: [PATCH v2] thunderbolt: Fix to check return value of ida_simple_get

2019-03-22 Thread Mukesh Ojha
On 3/21/2019 11:19 AM, Mika Westerberg wrote: On Thu, Mar 21, 2019 at 02:09:41AM +0530, Mukesh Ojha wrote: On 3/20/2019 9:59 PM, Mika Westerberg wrote: On Wed, Mar 20, 2019 at 11:24:45AM -0500, Aditya Pakki wrote: In enumerate_services, ida_simple_get on failure can return an error and

Re: [PATCH -next] ubifs: remove unused function __ubifs_shash_final

2019-03-22 Thread Mukesh Ojha
On 3/21/2019 1:39 PM, Richard Weinberger wrote: Am Donnerstag, 21. März 2019, 08:54:55 CET schrieb Mukesh Ojha: Acked-by: Mukesh Ojha I guess you mean Reviewed-by? As i am unsure about future scope of this func. i.e why Acked. Acked-by is usually something I expect from the code author or

Re: [PATCH -next] ubifs: remove unused function __ubifs_shash_final

2019-03-21 Thread Mukesh Ojha
On 3/21/2019 1:48 AM, Richard Weinberger wrote: Am Mittwoch, 20. März 2019, 21:05:37 CET schrieb Mukesh Ojha: On 3/20/2019 7:39 PM, Yue Haibing wrote: From: YueHaibing There is no callers in tree, and can be removed. Signed-off-by: YueHaibing --- fs/ubifs/auth.c | 18

Re: [PATCH] of: Drop redundant check in linker section OF match table

2019-03-21 Thread Mukesh Ojha
On 3/21/2019 1:25 AM, Frank Rowand wrote: On 3/20/19 3:49 AM, Mukesh Ojha wrote: Existing check of `fn` against NULL inside OF match table is redundant. Remove the check. Signed-off-by: Mukesh Ojha Cc: Rob Herring Cc: Frank Rowand Cc: Pantelis Antoniou Cc: devicet...@vger.kernel.org

Re: [PATCH v2] thunderbolt: Fix to check for kmemdup failure

2019-03-20 Thread Mukesh Ojha
g the change. Reviewed-by: Mukesh Ojha -Mukesh static int tb_switch_add_dma_port(struct tb_switch *sw) @@ -1372,7 +1378,9 @@ static int tb_switch_add_dma_port(struct tb_switch *sw) if (status) { tb_sw_info(sw, "switch flash authentication failed\n"); -

Re: [PATCH -next] irqchip/brcmstb-l2: Make two init functions static

2019-03-20 Thread Mukesh Ojha
vice_node *np, +static int __init brcmstb_l2_lvl_intc_of_init(struct device_node *np, struct device_node *parent) { return Acked-by: Mukesh Ojha Thanks, Mukesh brcmstb_l2_intc_of_init(np, parent, &l2_lvl_intc_init);

Re: [PATCH v2] thunderbolt: Fix to check return value of ida_simple_get

2019-03-20 Thread Mukesh Ojha
On 3/20/2019 9:59 PM, Mika Westerberg wrote: On Wed, Mar 20, 2019 at 11:24:45AM -0500, Aditya Pakki wrote: In enumerate_services, ida_simple_get on failure can return an error and leaks memory during device_register failure. The patch ensures that the dev_set_name is set on non failure cases,

Re: [PATCH v3] staging: rtlwifi: rtl8822b: fix to avoid NULL pointer dereference

2019-03-20 Thread Mukesh Ojha
*)skb_put(skb, totalpacketlen), &reserved_page_packet, totalpacketlen); Reviewed-by: Mukesh Ojha

Re: [PATCH v3] staging: rtl8188eu: Fix potential NULL pointer dereference of kcalloc

2019-03-20 Thread Mukesh Ojha
On 3/20/2019 10:51 PM, Aditya Pakki wrote: hwxmits is allocated via kcalloc and not checked for failure before its No need to mention  kcalloc as the other place allocates the memory through kmalloc. Otherwise looks good. Acked-by: Mukesh Ojha dereference. The patch fixes this problem

Re: [PATCH -next] ubifs: remove unused function __ubifs_shash_final

2019-03-20 Thread Mukesh Ojha
); - - return 0; -} - -/** * ubifs_bad_hash - Report hash mismatches * @c: UBIFS file-system description object * @node: the node Looks fine to be removed. Acked-by: Mukesh Ojha -Mukesh

Re: [PATCH -next] pinctrl: fsl: Make pinctrl_ipc_handle static

2019-03-20 Thread Mukesh Ojha
@@ struct imx_sc_msg_resp_pad_get { u32 val; } __packed; -struct imx_sc_ipc *pinctrl_ipc_handle; +static struct imx_sc_ipc *pinctrl_ipc_handle; int imx_pinctrl_sc_ipc_init(struct platform_device *pdev) { Reviewed-by: Mukesh Ojha

Re: [PATCH -next] proc/kcore: Make kcore_modules static

2019-03-20 Thread Mukesh Ojha
tic struct kcore_list kcore_modules; static void __init add_modules_range(void) { if (MODULES_VADDR != VMALLOC_START && MODULES_END != VMALLOC_END) { Acked-by: Mukesh Ojha

Re: [PATCH -next] irqchip/brcmstb-l2: Make two init functions static

2019-03-20 Thread Mukesh Ojha
vice_node *np, +static int __init brcmstb_l2_lvl_intc_of_init(struct device_node *np, struct device_node *parent) { return brcmstb_l2_intc_of_init(np, parent, &l2_lvl_intc_init); Reviewed-by: Mukesh Ojha Thanks, Mukesh

Re: [PATCH -next] watchdog: sb_wdog: Make sbwdog_set and sbwdog_pet static

2019-03-20 Thread Mukesh Ojha
; @@ -81,7 +81,7 @@ void sbwdog_set(char __iomem *wdog, unsigned long t) * * wdog is the iomem address of the cfg register */ -void sbwdog_pet(char __iomem *wdog) +static void sbwdog_pet(char __iomem *wdog) { spin_lock(&sbwd_lock); __raw_writeb(__raw_readb(wdog) | 1, wdo

Re: [PATCH v3] staging: rtlwifi: Fix potential NULL pointer dereference of kzalloc

2019-03-20 Thread Mukesh Ojha
riv->phydm.internal) + return 0; _rtl_phydm_init_com_info(rtlpriv, ic, params); Reviewed-by:  Mukesh Ojha Thanks, Mukesh

Re: [PATCH] hyperv: a potential NULL pointer dereference

2019-03-20 Thread Mukesh Ojha
_arg = page_address(pg); hv_get_vp_index(msr_vp_index); Looks good to me. Reviewed-by: Mukesh Ojha Thanks. Mukesh

Re: [PATCH] staging: rtlwifi: Fix potential NULL pointer dereference

2019-03-20 Thread Mukesh Ojha
wed-by: Mukesh Ojha Can you fix that cleanly ? or i will do? Cheers, Mukesh _rtl_phydm_init_com_info(rtlpriv, ic, params); odm_init_all_timers(dm);

<    1   2   3   4   >