aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorTomas Winkler <[email protected]>2020-07-23 17:59:23 +0300
committerGreg Kroah-Hartman <[email protected]>2020-07-23 19:33:09 +0200
commitb4a6700c80f9ecbb848fd1fa3ce72062a7a65e93 (patch)
tree23274b31fea086cd3c86cca0efd1b465b0fc7397 /drivers/fpga/fpga-mgr.c
parentdf4b37bcc80d236df53dcc71c8bd9928507101ff (diff)
mei: ioctl: use sizeof of variable instead of struct type
Use sizeof(connect_data))) instead of sizeof(struct mei_connect_client_data) when copying data between user space and kernel. There is a possibility of bug when variable type has changed but corresponding struct passed to the sizeof has not. Cc: Gustavo A. R. Silva <[email protected]> Reviewed-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Tomas Winkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions