Patch "scsi: target/core: Use kmem_cache_free() instead of kfree()" has been added to the 4.20-stable tree
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 ofkfree()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=summaryThe 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
d95e5d7f77bae4d48a66cda1341c934790898c67Author: Wei Yongjun <[email protected]> Date: Mon Dec 17 12:19:53 2018 +0000
Quoted 8 lines
scsi: target/core: Use
kmem_cache_free()instead ofkfree()[ Upstream commit
8b2db98e814a5ec45e8800fc22ca9000ae0a517b]memory allocated by
kmem_cache_alloc()should be freed usingkmem_cache_free(), notkfree().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