Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4316490imm; Fri, 18 May 2018 03:07:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp3++7NBNlC/gxGd4Eb9ddOfe5VVaKmsqFudtCKF8PWB/j4EH3l8OBpavf9Xv/lKBc8Vaxa X-Received: by 2002:a65:5c47:: with SMTP id v7-v6mr6992385pgr.425.1526638022137; Fri, 18 May 2018 03:07:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526638022; cv=none; d=google.com; s=arc-20160816; b=xVLfuRjShDfKUiiNO/T6mXkwRkFGjyR9RXtQ+3ifunAXr3ttl7lSF36JXgA8fplw53 IGE0DU1oNsOWBPvL8nSP0wMhGO4PnC+tyKWvrOlRPRnSJmpsiLLwlxWITR5eJD9DX6De v/Kz0oifUpnQoBLxglI4kKCdbHdOWAd3jdpOZHEdA0sfoXe52ZTDNyT330hGSJoLTv0W /gWhMyL5aXkFNSKWxYYGEXfASYcevomU6aELVfGiahw4rZfTVPhsc/qCdwskD6LrpU6e jiIRuvz384EquCi9SrrLZ85mWDO76sCUYjR3MlNaY1n17IcdBcfS9jeCTL179oy8Ln5H JV2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=LOYPFn6CXLl6DewYZFyKoBQ2flt6mh/ZjOkmiKqBtpI=; b=Eoe6LGKd92I0ytB6lvlC8/EVDuKmZSwXAtdQUOeQWl998EmTntRR4SM51Mi76Mckou hAABkFzgjyYZSj8dh87YFwMSvXuzyAAJrU+GVIv92WCrTuStFCoFwQg64Zmsjl26y4Sa woft5++ybA7Z6PWVces6TRNlxqP2gjaypu72NQDbJVPipRb/Dbr35FM0NfZTkSma9gX5 t5lpfJzQDvDgnHEhgf2f97BHb1RhKe3aKTeR71CDShsM7oUSgUDT1GTcnOA6sus8pCFq f73djs2Lw9GHzjjjmczsms78G1Pw11RHU4Izn+ZsoaZyH/tPnZSTxMo0S13sidKnusWC RfpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=djvaUadC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14-v6si4340623pgf.19.2018.05.18.03.06.47; Fri, 18 May 2018 03:07:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=djvaUadC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752253AbeERKGf (ORCPT + 99 others); Fri, 18 May 2018 06:06:35 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:47006 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751540AbeERKGd (ORCPT ); Fri, 18 May 2018 06:06:33 -0400 Received: by mail-qt0-f196.google.com with SMTP id m16-v6so9497558qtg.13 for ; Fri, 18 May 2018 03:06:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=LOYPFn6CXLl6DewYZFyKoBQ2flt6mh/ZjOkmiKqBtpI=; b=djvaUadCmurEzrJhmJNElkkYdEiwzq/VCc9JhjFj8kiPPR/Prq/sF+OobHM5HpQq3I RfNWIQwP5aOVLKs44sFZDIpLKuZ8N5jhzYiR4naQ7OV+ib8X7PZUQgq/3cmPGx4MlIe+ RcsNus2imgjyNBTbHtWHdow+D2AL1M1FZaJWQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=LOYPFn6CXLl6DewYZFyKoBQ2flt6mh/ZjOkmiKqBtpI=; b=K+aa2YP4f1JBUxc61qPn+FjklxxxErsGZDNxPor+KXpIOdySwA5v6HAbfruO0YAWiy UJSiH4RokuAOvYMV1EzvsYiFQ9rlPgc8agpfrgVgk62cME52L4Mhp0N3g7M9HYJwgl8K 22D4pXd8GuoK5MZmsB25HkLPLM7LB/aMc0kKz/HY5LIorfTvV+QG3K5hZ3cjLu9Rb7+2 U6GLIykSTW0AQ/B4Fkh+kdb0MwlXMcS68E60SM8wnMIMFgbFm30FJZx6MKwHpXJU8g0h RjW0ZtQNUyqOGSeuayyNdJjcNNQ3ik5VpRWC2SSz9WDV/EL8zdwXOB5lnAhLThAwPWms 39bA== X-Gm-Message-State: ALKqPweLD6j6Qx4pITq0/Gc/CgGT40AnxQbpnlk5NQjPuvmeEQnMxnmy TJhpFQXG9b45ZybiXjg41NZfGapmCxeOgQkUqAUz05RH X-Received: by 2002:aed:3cf0:: with SMTP id e45-v6mr8821067qtf.276.1526637992284; Fri, 18 May 2018 03:06:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.173.141 with HTTP; Fri, 18 May 2018 03:06:31 -0700 (PDT) In-Reply-To: <58c8d2d16995e80f5527370e224045e2@codeaurora.org> References: <20180517113250.16517-1-ramon.fried@linaro.org> <58c8d2d16995e80f5527370e224045e2@codeaurora.org> From: Ramon Fried Date: Fri, 18 May 2018 13:06:31 +0300 Message-ID: Subject: Re: [PATCH] wcn36xx: Add support for Factory Test Mode (FTM) To: Jeff Johnson Cc: kvalo@codeaurora.org, linux-kernel@vger.kernel.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Eyal Ilsar , linux-wireless-owner@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 17 May 2018 at 21:37, Jeff Johnson wrote: > On 2018-05-17 04:32, Ramon Fried wrote: >> >> From: Eyal Ilsar > > ... >> >> +int wcn36xx_smd_process_ptt_msg(struct wcn36xx *wcn, >> + struct ieee80211_vif *vif, void *ptt_msg, >> size_t len, >> + void **ptt_rsp_msg) >> +{ >> + struct wcn36xx_hal_process_ptt_msg_req_msg *p_msg_body; >> + int ret = 0; >> + >> + mutex_lock(&wcn->hal_mutex); >> + p_msg_body = kmalloc( >> + sizeof(struct wcn36xx_hal_process_ptt_msg_req_msg) + len, >> + GFP_ATOMIC); > > > NULL check required? > >> + INIT_HAL_PTT_MSG(p_msg_body, len); >> + Thanks Jeff. will fix it and send again :)