diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-23 23:45:27 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:08 +0200 |
| commit | c175435fdf50c81ca2b6576f090cba31c3489209 (patch) | |
| tree | 28b3d2d81e6b6e1b3855588e7b8395e81d5ea942 /include/linux | |
| parent | a7b3a739c777c6deaad5c54a402304da77065642 (diff) | |
NFC: nci: memory leak in nci_core_conn_create()
commit c6dc65d885b98898bf287aaf44e020077b41769f upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
