Patch "staging/lustre/lnet: Fix allocation size for sv_cpt_data" has been added to the 4.9-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
staging/lustre/lnet: Fix allocation size for sv_cpt_data
to the 4.9-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:
staging-lustre-lnet-fix-allocation-size-for-sv_cpt_data.patch
and it can be found in the queue-4.9 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
dc7ffefdcc28a45214aa707fdc3df6a5e611ba09Mon Sep 17 00:00:00 2001
From: Oleg Drokin <[email protected]>
Date: Sun, 19 Feb 2017 16:35:59 -0500
Subject: staging/lustre/lnet: Fix allocation size for sv_cpt_data
From: Oleg Drokin <[email protected]>
commit dc7ffefdcc28a45214aa707fdc3df6a5e611ba09 upstream.
This is unbreaking another of those "stealth" janitor patches that got in and subtly broke some things.
sv_cpt_data is a pointer to pointer, so need to dereference it twice to allocate the correct structure size.
--- drivers/staging/lustre/lnet/selftest/rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lnet/selftest/rpc.c +1 -1
@@ -252,7 +252,7 @@ srpc_service_init(struct srpc_service *s svc->sv_shuttingdown =0 ; svc->sv_cpt_data =cfs_percpt_alloc (lnet_cpt_table (), -sizeof (*svc->sv_cpt_data)); +sizeof (**svc->sv_cpt_data));if (!svc->sv_cpt_data)return -ENOMEM ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.9/staging-lustre-lnet-fix-allocation-size-for-sv_cpt_data.patch