kernel/drivers/nfc/st21nfca/se.c
.. .. @@ -236,6 +236,12 @@ 236 236 ST21NFCA_EVT_TRANSMIT_DATA, 237 237 apdu, apdu_length); 238 238 default: 239 + /* Need to free cb_context here as at the moment we can't240 + * clearly indicate to the caller if the callback function241 + * would be called (and free it) or not. In both cases a242 + * negative value may be returned to the caller.243 + */244 + kfree(cb_context);239 245 return -ENODEV; 240 246 } 241 247 }