mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Fix return value check
@ 2020-07-10  9:30 Lu Wei
  2020-07-10  9:30 ` [PATCH v3 1/2] intel-hid: Fix return value check in check_acpi_dev() Lu Wei
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Lu Wei @ 2020-07-10  9:30 UTC (permalink / raw)
  To: alex.hung, dvhart, andy, platform-driver-x86, linux-kernel,
	acelan.kao, andy.shevchenko, luwei32

In the function check_acpi_dev(), if it fails to create
platform device, the return value is ERR_PTR() or NULL.
Thus it must use IS_ERR_OR_NULL to check return value.

---
v2->v3
- Modify format
v3->v4
- Change commit number to 12 characters

Lu Wei (2):
  intel-hid: Fix return value check in check_acpi_dev()
  intel-vbtn: Fix return value check in check_acpi_dev()

 drivers/platform/x86/intel-hid.c  | 2 +-
 drivers/platform/x86/intel-vbtn.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--
2.7.4


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH v3 0/2] Fix return value check
@ 2020-07-10  9:04 Lu Wei
  0 siblings, 0 replies; 5+ messages in thread
From: Lu Wei @ 2020-07-10  9:04 UTC (permalink / raw)
  To: alex.hung, dvhart, andy, platform-driver-x86, linux-kernel,
	acelan.kao, andy.shevchenko, luwei32

In the function check_acpi_dev(), if it fails to create
platform device, the return value is ERR_PTR() or NULL.
Thus it must use IS_ERR_OR_NULL to check return value.

*** BLURB HERE ***

Lu Wei (2):
  intel-hid: Fix return value check in check_acpi_dev()
  intel-vbtn: Fix return value check in check_acpi_dev()

 drivers/platform/x86/intel-hid.c  | 2 +-
 drivers/platform/x86/intel-vbtn.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2020-07-10 20:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10  9:30 [PATCH v3 0/2] Fix return value check Lu Wei
2020-07-10  9:30 ` [PATCH v3 1/2] intel-hid: Fix return value check in check_acpi_dev() Lu Wei
2020-07-10  9:30 ` [PATCH v3 2/2] intel-vbtn: " Lu Wei
2020-07-10 20:37 ` [PATCH v3 0/2] Fix return value check Andy Shevchenko
  -- strict thread matches above, loose matches on Subject: below --
2020-07-10  9:04 Lu Wei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®