bna: use memdup_user to copy userspace buffers
authorIvan Vecera <ivecera@redhat.com>
Thu, 11 Jun 2015 13:52:26 +0000 (15:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jun 2015 22:57:17 +0000 (15:57 -0700)
commitd0e6a8064c4293a1e087b2fdd6c2b67cd8ba8f56
tree01eda6dfa3e210601706141cf8be5e97a69d865b
parent93719d266a196d7e4a65c88ec6e90ae5e2424075
bna: use memdup_user to copy userspace buffers

Patch converts kzalloc->copy_from_user sequence to memdup_user. There
is also one useless assignment of NULL to bnad->regdata as it is followed
by assignment of kzalloc output.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bnad_debugfs.c