staging: r8192e_pci: Change memcpy to memcmp
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 20 Apr 2012 19:45:37 +0000 (14:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Apr 2012 22:12:12 +0000 (15:12 -0700)
commitea9f10f2fd207bb70a730ee3b356f75bc00ff41d
tree596f5b722bce64c01164f0107fbd8b18b5d104fa
parentef2353d26bdc44c78713da1a6eb2325ba9dac6f7
staging: r8192e_pci: Change memcpy to memcmp

Routine rtllib_MlmeDisassociateRequest() has a comparison of memcpy()
with NULL, which makes no sense. Analysis of the code suggests that
memcmp() was intended.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_softmac.c