Skip to contentSkip to conversation

Patch "scsi: target/core: Use kmem_cache_free() instead of kfree()" has been added to the 4.20-stable tree

DISCUSSION Greg KH 1 participant 1 message Feb 21, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Greg KH

author
#1 lore raw
Quoted 20 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

scsi: target/core: Use kmem_cache_free() instead of kfree()

to the 4.20-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
scsi-target-core-use-kmem_cache_free-instead-of-kfre.patch
and it can be found in the queue-4.20 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

commit d95e5d7f77bae4d48a66cda1341c934790898c67

Author: Wei Yongjun <[email protected]>
Date:   Mon Dec 17 12:19:53 2018 +0000
Quoted 8 lines

scsi: target/core: Use kmem_cache_free() instead of kfree()

[ Upstream commit 8b2db98e814a5ec45e8800fc22ca9000ae0a517b ]

memory allocated by kmem_cache_alloc() should be freed using kmem_cache_free(), not kfree().

Fixes ad669505c4e9 ("scsi: target/core: Make sure that target_wait_for_sess_cmds() waits long enough")

Based on this tag, it also needs to go to 4.19.y. I'll go queue it up there...

greg k-h