nfc: Fix to check for kmemdup failure
authorAditya Pakki <pakki001@umn.edu>
Tue, 19 Mar 2019 03:19:44 +0000 (22:19 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Mar 2019 20:48:07 +0000 (13:48 -0700)
commitd7737d4257459ca8921ff911c88937be1a11ea9d
tree5f62be7d6a6c5bcd8da3a405825e6bab6159c1ee
parenta3e23f719f5c4a38ffb3d30c8d7632a4ed8ccd9e
nfc: Fix to check for kmemdup failure

In case of kmemdup failure while setting the service name the patch
returns -ENOMEM upstream for processing.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/nfc/llcp_sock.c