staging/lustre/lnet: Fix allocation size for sv_cpt_data
authorOleg Drokin <green@linuxhacker.ru>
Sun, 19 Feb 2017 21:35:59 +0000 (16:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:44:09 +0000 (06:44 +0100)
commitf2bdb905fec27880f76f143ee7bb0d3145c9a4e3
treed5bf855dab58b4f7b25a97d128a7a30ea000365b
parentd43004bdde3f58439aad5efd5fd5744714ef2459
staging/lustre/lnet: Fix allocation size for sv_cpt_data

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.

Fixes: 9899cb68c6c2 ("Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type.")
CC: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/selftest/rpc.c