commit | c6dc65d885b98898bf287aaf44e020077b41769f | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Dec 23 23:45:27 2015 +0100 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Tue Dec 29 19:06:23 2015 +0100 |
tree | 94d8c0d3eaecb7589469b9dc6066445c2a1b57ab | |
parent | 97b69788971de8af994ba570d56c455e79eaf35e [diff] |
NFC: nci: memory leak in nci_core_conn_create() I've moved the check for "number_destination_params" forward a few lines to avoid leaking "cmd". Fixes: caa575a86ec1 ('NFC: nci: fix possible crash in nci_core_conn_create') Acked-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>