Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4395636rdb; Fri, 15 Sep 2023 00:14:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzTSIeL1tw7IhpBTKjXAhcddGVea27uSUSh8o436sqglz8+Q2mpl4eWcsK5UBzWER/Qbjo X-Received: by 2002:a17:90a:728b:b0:268:38a7:842e with SMTP id e11-20020a17090a728b00b0026838a7842emr657907pjg.2.1694762050989; Fri, 15 Sep 2023 00:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694762050; cv=none; d=google.com; s=arc-20160816; b=vGVurByvljwKJ6uG7oP6RUjBptW3fPPamllpGNMXgPMPniI+69SkGM8rPZnhgGDTGC bPu/+i2lBYE2+mlZH7zdCI++cU7XWdaaK3F9sfMgPemt6Dz5NxaLpudjU90JCFD22lyi U79jVJXbsKl4OovTy9vg++aT2UyVlHqQFBmxHNAQNGoXg17Oz9agd5kPERBkSw4TkPMh ZEAzCNpQ+crAMFSfaL5p8nPjRmL8nkNLbblTitnsZbwImveLs1c+hWIMir63gqaYczjt 5b7PZJszIExSQCvOTNFknqMBD+2l/3PEBMvC/adXjSV/kJMBtTzZflmragmj3rIzTmu2 E2qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=duSaNeGznZDxsqL4XxZuAmTpqYrhyn5db4vVj8CzfzU=; fh=k0MwBGPY+qm8mzu4ShMnudI/OFUlUq/Nn40VBFWwk9Y=; b=L0dWEzYVrLVIKYNBgS7sH1Jj4pxqBqBQTbENcvd4FWBRNxlTLZX3Q9WZ7SlvUVghZv QEZKIZrP4PRyBvLfd8DP//G3tL7/TKstZkLIx9R/CbqjwlFAhSDnE3ZxEpOdEufDNB1X 3ySSogIPLTooiVOlhYj7n0xah1f6ajFL5vY6QAbVKoDo1i3hWYMuswYHKzX7eUBZIESI b5o47pFn+v5IX3hz+Kzm2DkXVOh8ZhTvvOpDrt1fVbyO9bx+ZvHIzCJuHCRKqRsWJz0F CWW7pHXHQbdmqlYGmRsz430fLmKXgMhDy9RVLgY4Gn8kTjOf9EmITDQ52g/gNLXhG7YT SvPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="I/d+rOhF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id my1-20020a17090b4c8100b00268414272cbsi5689002pjb.75.2023.09.15.00.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 00:14:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="I/d+rOhF"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C9B278077551; Thu, 14 Sep 2023 19:46:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231549AbjIOCqe (ORCPT + 99 others); Thu, 14 Sep 2023 22:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231428AbjIOCqd (ORCPT ); Thu, 14 Sep 2023 22:46:33 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE47A26AB; Thu, 14 Sep 2023 19:46:28 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38F2gwoL026800; Fri, 15 Sep 2023 02:46:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=duSaNeGznZDxsqL4XxZuAmTpqYrhyn5db4vVj8CzfzU=; b=I/d+rOhFQJiBBx8iOxxV68ZtXGUFb6gb6IwPgg38VqVAnQE8ABm1I6+m9sdwONk+Ee4c HTAaL6+scPImXMJpyDoAW5DQ5JGDsrl5v675ectPv4qTQxqLPayRpbloeS1NnvZuS0gI v5RL0QoZoqcTpJiQO9Lf8ne7CVgJVHy/OBtl7/mX+YijkstfZr3vWvvF9B26GSOAFoSE sYqZqc+9ocPCIiUaP64yBPJdNzLle4kOBNgi2xoJlyCHOA+JivM6hY9jZs5UNfzA564x m5C5oQVFKRwTJRPxtuav0POBgTIZRgIswK4f9RXSRlzEN1XaBwq2PYCl4Vj8HMPy9GlG CQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3t4eq9r0b9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Sep 2023 02:46:26 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 38F2kPJC027298 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Sep 2023 02:46:25 GMT Received: from [10.216.15.200] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Thu, 14 Sep 2023 19:46:22 -0700 Message-ID: <691dc45e-8c06-71b6-c7bd-6e077d5fcea2@quicinc.com> Date: Fri, 15 Sep 2023 08:16:18 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.1 Subject: Re: [RFC] usb: gadget: ncm: Handle decoding of multiple NTB's in unwrap call To: =?UTF-8?Q?Maciej_=c5=bbenczykowski?= CC: Greg Kroah-Hartman , Linyu Yuan , , , , , References: <20230914182922.27157-1-quic_kriskura@quicinc.com> Content-Language: en-US From: Krishna Kurapati PSSNV In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: BnVTgxnGLqneL7y32P4H8rTHelEm2Ix0 X-Proofpoint-GUID: BnVTgxnGLqneL7y32P4H8rTHelEm2Ix0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-15_02,2023-09-14_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=412 clxscore=1015 spamscore=0 impostorscore=0 adultscore=0 phishscore=0 bulkscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309150023 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 14 Sep 2023 19:46:31 -0700 (PDT) On 9/15/2023 6:54 AM, Maciej Żenczykowski wrote: > Reviewed-by: Maciej Żenczykowski > > The casts should probably use the actual correct ptr type instead of void* > Hi Maciej Żenczykowski, Thanks for the review. I initially tried to typecast it to char* since the skb->data is of that type. But nothing was working. So I kept it void* since the initial variable tmp too was kept to void* Will add the stable and review tag as well and send v2 to be merged. Regards, Krishna,