All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/8] irqchip: Fix some issues and do some code cleanups about Loongson
@ 2020-07-16  3:16 Tiezhu Yang
  2020-07-16  3:16 ` [PATCH v4 1/8] irqchip/loongson-htpic: Remove redundant kfree operation Tiezhu Yang
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Tiezhu Yang @ 2020-07-16  3:16 UTC (permalink / raw)
  To: Marc Zyngier, Thomas Gleixner, Jason Cooper
  Cc: Huacai Chen, Jiaxun Yang, linux-kernel

Check the return value of irq_domain_translate_onecell() and
irq_domain_translate_twocell(), fix potential resource leak
and dead lock, do some code cleanups about Loongson to make
it more clean and readable.

v2:
  - In order to avoid git send-email failed, make the related patches
    about Loongson into a new patch series and add "Fixes" tag

v3:
  - Add a new patch "irqchip/loongson-liointc: Fix potential dead lock"
  - Fix another typo in loongson,liointc.yaml

v4:
  - Fix another typo in loongson,liointc.yaml reviewed by Rob

Tiezhu Yang (8):
  irqchip/loongson-htpic: Remove redundant kfree operation
  irqchip/loongson-htpic: Remove unneeded select of I8259
  irqchip/loongson-htvec: Fix potential resource leak
  irqchip/loongson-htvec: Check return value of
    irq_domain_translate_onecell()
  irqchip/loongson-pch-pic: Check return value of
    irq_domain_translate_twocell()
  irqchip/loongson-pch-msi: Remove unneeded variable
  irqchip/loongson-liointc: Fix potential dead lock
  dt-bindings: interrupt-controller: Fix typos in loongson,liointc.yaml

 .../bindings/interrupt-controller/loongson,liointc.yaml   |  4 ++--
 drivers/irqchip/Kconfig                                   |  1 -
 drivers/irqchip/irq-loongson-htpic.c                      |  6 ++----
 drivers/irqchip/irq-loongson-htvec.c                      | 10 ++++++++--
 drivers/irqchip/irq-loongson-liointc.c                    |  1 +
 drivers/irqchip/irq-loongson-pch-msi.c                    |  7 +------
 drivers/irqchip/irq-loongson-pch-pic.c                    | 15 +++++++++------
 7 files changed, 23 insertions(+), 21 deletions(-)

-- 
2.1.0


^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: [PATCH v4 1/8] irqchip/loongson-htpic: Remove redundant kfree operation
@ 2020-07-16  8:45 Markus Elfring
  0 siblings, 0 replies; 12+ messages in thread
From: Markus Elfring @ 2020-07-16  8:45 UTC (permalink / raw)
  To: Tiezhu Yang, linux-mips
  Cc: linux-kernel, Huacai Chen, Jason Cooper, Jiaxun Yang,
	Marc Zyngier, Thomas Gleixner

> In the function htpic_of_init(), when kzalloc htpic fails, it should
> return -ENOMEM directly, no need to execute "goto" to kfree.

Would another imperative wording be preferred for the commit message?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=f8456690ba8eb18ea4714e68554e242a04f65cff#n151

Regards,
Markus

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-07-17 12:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-16  3:16 [PATCH v4 0/8] irqchip: Fix some issues and do some code cleanups about Loongson Tiezhu Yang
2020-07-16  3:16 ` [PATCH v4 1/8] irqchip/loongson-htpic: Remove redundant kfree operation Tiezhu Yang
2020-07-16  3:16 ` [PATCH v4 2/8] irqchip/loongson-htpic: Remove unneeded select of I8259 Tiezhu Yang
2020-07-16  3:16 ` [PATCH v4 3/8] irqchip/loongson-htvec: Fix potential resource leak Tiezhu Yang
2020-07-16  3:16 ` [PATCH v4 4/8] irqchip/loongson-htvec: Check return value of irq_domain_translate_onecell() Tiezhu Yang
2020-07-16  3:16 ` [PATCH v4 5/8] irqchip/loongson-pch-pic: Check return value of irq_domain_translate_twocell() Tiezhu Yang
2020-07-16  3:16 ` [PATCH v4 6/8] irqchip/loongson-pch-msi: Remove unneeded variable Tiezhu Yang
2020-07-16  3:16 ` [PATCH v4 7/8] irqchip/loongson-liointc: Fix potential dead lock Tiezhu Yang
2020-07-16  3:16 ` [PATCH v4 8/8] dt-bindings: interrupt-controller: Fix typos in loongson,liointc.yaml Tiezhu Yang
2020-07-16 19:08   ` Rob Herring
2020-07-17 12:55     ` Marc Zyngier
2020-07-16  8:45 [PATCH v4 1/8] irqchip/loongson-htpic: Remove redundant kfree operation Markus Elfring

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.