From: Christophe Ricard Date: Tue, 31 Mar 2015 06:02:19 +0000 (+0200) Subject: nfc: Reduce nfc_evt_transaction params length to 0 X-Git-Tag: v4.14-rc1~5592^2~44^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fc4a1291aeef338593e44e5396559df27f0bfdf;p=platform%2Fkernel%2Flinux-rpi.git nfc: Reduce nfc_evt_transaction params length to 0 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 Signed-off-by: Samuel Ortiz --- diff --git a/include/net/nfc/nfc.h b/include/net/nfc/nfc.h index 73190e6..7ac029c 100644 --- a/include/net/nfc/nfc.h +++ b/include/net/nfc/nfc.h @@ -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 {