kernel/drivers/nfc/st-nci/se.c
.. .. @@ -664,6 +664,12 @@ 664 664 ST_NCI_EVT_TRANSMIT_DATA, apdu, 665 665 apdu_length); 666 666 default: 667 + /* Need to free cb_context here as at the moment we can't668 + * clearly indicate to the caller if the callback function669 + * would be called (and free it) or not. In both cases a670 + * negative value may be returned to the caller.671 + */672 + kfree(cb_context);667 673 return -ENODEV; 668 674 } 669 675 }