staging: unisys: virtpci: Allocate memory using the size of the variable
authorBryan Thompson <bryan.thompson@unisys.com>
Thu, 30 Oct 2014 20:18:48 +0000 (16:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Oct 2014 20:35:35 +0000 (13:35 -0700)
commit732bf98833d8a3f13a658e24513ca5661a4be62f
tree490f5436f8c0b9cce3c06fc9810d5ef088213652
parent15c769671739919226bb8aa2b7e23c5df7603086
staging: unisys: virtpci: Allocate memory using the size of the variable

Change two instances of using the sizeof a structure to the size of a specific variable when
allocating memory in virtpci.c

Signed-off-by: Bryan Thompson <bryan.thompson@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/virtpci/virtpci.c