Searched refs:sdreq (Results 1 – 1 of 1) sorted by relevance
136 struct nfc_llcp_sdp_tlv *sdreq; in nfc_llcp_build_sdreq_tlv() local144 sdreq = kzalloc(sizeof(struct nfc_llcp_sdp_tlv), GFP_KERNEL); in nfc_llcp_build_sdreq_tlv()145 if (sdreq == NULL) in nfc_llcp_build_sdreq_tlv()148 sdreq->tlv_len = uri_len + 3; in nfc_llcp_build_sdreq_tlv()151 sdreq->tlv_len--; in nfc_llcp_build_sdreq_tlv()153 sdreq->tlv = kzalloc(sdreq->tlv_len + 1, GFP_KERNEL); in nfc_llcp_build_sdreq_tlv()154 if (sdreq->tlv == NULL) { in nfc_llcp_build_sdreq_tlv()155 kfree(sdreq); in nfc_llcp_build_sdreq_tlv()159 sdreq->tlv[0] = LLCP_TLV_SDREQ; in nfc_llcp_build_sdreq_tlv()160 sdreq->tlv[1] = sdreq->tlv_len - 2; in nfc_llcp_build_sdreq_tlv()[all …]