Skip to content

HID: wacom: fix sleeping in atomic context in wacom_wac_queue_flush()

Jinmo Yang linux-input lkml stable 2 versions – Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-7.2/wacom), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v11 patch 1 replySuperseded

Changes in v2 from the cover letter

- Replaced Suggested-by with Reported-by for Sashiko-bot
- Added patch 2 to use __free(kfree) cleanup facility (Dmitry)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2HID: wacom: use GFP_ATOMIC in wacom_wac_queue_flush()drivers/hid/wacom_sys.c+1 -10 replies
2/2HID: wacom: use cleanup.h for wacom_wac_queue_flush() buffer managementdrivers/hid/wacom_sys.c+1 -50 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDmitry Torokhov
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] HID: wacom: fix sleeping in atomic context in wacom_wac_queue_flush()

wacom_wac_queue_flush() uses GFP_KERNEL for kzalloc, but it can be called from atomic context via the .raw_event callback path. Patch 1 fixes this by switching to GFP_ATOMIC, and patch 2 converts the buffer management to use __free(kfree) cleanup as suggested by Dmitry.

Changes since v1:
- Replaced Suggested-by with Reported-by for Sashiko-bot
- Added patch 2 to use __free(kfree) cleanup facility (Dmitry)

Jinmo Yang (2):
HID: wacom: use GFP_ATOMIC in wacom_wac_queue_flush()
HID: wacom: use cleanup.h for wacom_wac_queue_flush() buffer
management

 drivers/hid/wacom_sys.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
Signature · 1 line
2.53.0