[PATCH openEuler-1.0-LTS 1/4] nfc: Fix to check for kmemdup failure