Skip to content

Commit

Permalink
nfc: Reduce nfc_evt_transaction params length to 0
Browse files Browse the repository at this point in the history
According to etsi 102 622 chapter 11.2.2.4 EVT_TRANSACTION,
the nfc_evt_transaction parameters can be 0 up to 255 byte long.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Christophe Ricard authored and Samuel Ortiz committed Apr 5, 2015
1 parent 0b04096 commit 0fc4a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/nfc/nfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ struct nfc_evt_transaction {
u32 aid_len;
u8 aid[NFC_MAX_AID_LENGTH];
u8 params_len;
u8 params[NFC_MAX_PARAMS_LENGTH];
u8 params[0];
} __packed;

struct nfc_genl_data {
Expand Down

0 comments on commit 0fc4a12

Please sign in to comment.