Takashi Iwai 918a31
From 257343d3ed557f11d580d0b7c515dc154f64a42b Mon Sep 17 00:00:00 2001
Takashi Iwai 918a31
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Takashi Iwai 918a31
Date: Mon, 3 May 2021 13:56:53 +0200
Takashi Iwai 918a31
Subject: [PATCH] Revert "gdrom: fix a memory leak bug"
Takashi Iwai 918a31
Git-commit: 257343d3ed557f11d580d0b7c515dc154f64a42b
Takashi Iwai 918a31
Patch-mainline: v5.13-rc3
Takashi Iwai 918a31
References: git-fixes
Takashi Iwai 918a31
Takashi Iwai 918a31
This reverts commit 093c48213ee37c3c3ff1cf5ac1aa2a9d8bc66017.
Takashi Iwai 918a31
Takashi Iwai 918a31
Because of recent interactions with developers from @umn.edu, all
Takashi Iwai 918a31
commits from them have been recently re-reviewed to ensure if they were
Takashi Iwai 918a31
correct or not.
Takashi Iwai 918a31
Takashi Iwai 918a31
Upon review, this commit was found to be incorrect for the reasons
Takashi Iwai 918a31
below, so it must be reverted.  It will be fixed up "correctly" in a
Takashi Iwai 918a31
later kernel change.
Takashi Iwai 918a31
Takashi Iwai 918a31
Because of this, all submissions from this group must be reverted from
Takashi Iwai 918a31
the kernel tree and will need to be re-reviewed again to determine if
Takashi Iwai 918a31
they actually are a valid fix.  Until that work is complete, remove this
Takashi Iwai 918a31
change to ensure that no problems are being introduced into the
Takashi Iwai 918a31
codebase.
Takashi Iwai 918a31
Takashi Iwai 918a31
Cc: Wenwen Wang <wang6495@umn.edu>
Takashi Iwai 918a31
Cc: Peter Rosin <peda@axentia.se>
Takashi Iwai 918a31
Cc: Jens Axboe <axboe@kernel.dk>
Takashi Iwai 918a31
Fixes: 093c48213ee3 ("gdrom: fix a memory leak bug")
Takashi Iwai 918a31
Cc: stable <stable@vger.kernel.org>
Takashi Iwai 918a31
Link: https://lore.kernel.org/r/20210503115736.2104747-27-gregkh@linuxfoundation.org
Takashi Iwai 918a31
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Takashi Iwai 918a31
Acked-by: Takashi Iwai <tiwai@suse.de>
Takashi Iwai 918a31
Takashi Iwai 918a31
---
Takashi Iwai 918a31
 drivers/cdrom/gdrom.c | 1 -
Takashi Iwai 918a31
 1 file changed, 1 deletion(-)
Takashi Iwai 918a31
Takashi Iwai 918a31
diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c
Takashi Iwai 918a31
index 742b4a0932e3..7f681320c7d3 100644
Takashi Iwai 918a31
--- a/drivers/cdrom/gdrom.c
Takashi Iwai 918a31
+++ b/drivers/cdrom/gdrom.c
Takashi Iwai 918a31
@@ -862,7 +862,6 @@ static void __exit exit_gdrom(void)
Takashi Iwai 918a31
 	platform_device_unregister(pd);
Takashi Iwai 918a31
 	platform_driver_unregister(&gdrom_driver);
Takashi Iwai 918a31
 	kfree(gd.toc);
Takashi Iwai 918a31
-	kfree(gd.cd_info);
Takashi Iwai 918a31
 }
Takashi Iwai 918a31
 
Takashi Iwai 918a31
 module_init(init_gdrom);
Takashi Iwai 918a31
-- 
Takashi Iwai 918a31
2.26.2
Takashi Iwai 918a31