Skip to content

Commit 9a7dcde

Browse files
committed
Merge tag 'auxdisplay-for-linus-v5.0-rc7' of git://github.com/ojeda/linux
Pull auxdisplay fix from Miguel Ojeda: "Fix potential user-after-free on ht16k33 module unload. Reported by Sven Van Asbroeck" * tag 'auxdisplay-for-linus-v5.0-rc7' of git://github.com/ojeda/linux: auxdisplay: ht16k33: fix potential user-after-free on module unload
2 parents 0b999ae + 69ef9bc commit 9a7dcde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/auxdisplay/ht16k33.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static int ht16k33_remove(struct i2c_client *client)
509509
struct ht16k33_priv *priv = i2c_get_clientdata(client);
510510
struct ht16k33_fbdev *fbdev = &priv->fbdev;
511511

512-
cancel_delayed_work(&fbdev->work);
512+
cancel_delayed_work_sync(&fbdev->work);
513513
unregister_framebuffer(fbdev->info);
514514
framebuffer_release(fbdev->info);
515515
free_page((unsigned long) fbdev->buffer);

0 commit comments

Comments
 (0)