Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4418650rwb; Sun, 4 Dec 2022 01:31:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf7fW/YtCmSh6Idy5jRRh0wDlW4dl8UcbOD4bnwyBr+kvP4el0M5ErdfD55HB15mQA2mjq9l X-Received: by 2002:a05:6a00:3385:b0:56c:309:b900 with SMTP id cm5-20020a056a00338500b0056c0309b900mr58756614pfb.21.1670146266347; Sun, 04 Dec 2022 01:31:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670146266; cv=none; d=google.com; s=arc-20160816; b=mTgKCEWZUScVOAy5Od45335XY7oZd63M1VydBwK1P/rW9zO0us7kxmorz5EZqwZLhD Cya7xRbuhZ8X3I5lpzTx7K2HM+Tqg+T2L6Rue8dc/BRletLkpfOquG32eu/TNZgcalJ2 O0ChKZ5gr8NUxqhUdA1aS7DWKlnlwlZZhLXfSpMqV6I/B2/pIEf8VCLKFcaQzBLfys4y u4ZTYdC6s5Y0ftQRBGWkwcYpoOOq7tNAl8UGsZc4kT1JBfRpKWw6BrsTzwDeagJ+/Zyo NC0941gWUfQGOks5zFtO9wcQ5BCTmu+ak9H0PUo3aQkkgS/uXZHijv4Cg6x3YyQGwFiK 7K2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=eBEBDdM1WqCMw8hTwITff/zx3OBFIeNzjgTDJTDfPlY=; b=Bj7QC4hpJELWWJ9jD8hiqS/6+uD7+vaIMqDVeed7N6jdGclYYIcQc4WRxHwGhPPUZ3 kllvmHWXfZX1S4+qwHT5AxTN3FMANInS2J0P3jPS4jfoKsxpR3DVKemyv716skPRY7pV SdBeRqdMkYAbVpvAGYQgKBeX584P9o2i5Kd0bdSuShpT/+sbbBF8B/E0tDRuLUs+BMCs ylaHLu1ktm2Xi1pLOoHqZ/dKuDak5wgIXVsCZlgkO/ml49XjI6t/3vmo9yIva1GbM14/ FzKWczOC/Zatf6jOXxvzLCSGLYRd0aS2WllucY7k3F3+e+8UmawChBLg8ewJQ563g3nJ 2S5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kJMSsDxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k13-20020a636f0d000000b004782f073aa5si11494945pgc.151.2022.12.04.01.30.54; Sun, 04 Dec 2022 01:31:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=kJMSsDxZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229835AbiLDJXg (ORCPT + 83 others); Sun, 4 Dec 2022 04:23:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbiLDJXe (ORCPT ); Sun, 4 Dec 2022 04:23:34 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6D6E16580; Sun, 4 Dec 2022 01:23:33 -0800 (PST) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B49K2gr001785; Sun, 4 Dec 2022 09:23:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=eBEBDdM1WqCMw8hTwITff/zx3OBFIeNzjgTDJTDfPlY=; b=kJMSsDxZGXWjbTdv5/ZL/gzY6VmrnvdzQgwW0+aIlpca0hyxfjaLyypRruKDdQSo2HRt WT+C2t0/LHbJH3Z1fu/pB0ZOtNEutFq3IZj2NoOm96AXhXl6yd5oCdx21FIqRb+pFEYq 5SFbk1qZm4Z6PJOwPW4+lmGx5PCXDezdge2nA8dAKaPYfUZyGsjGIWWzdCCCSUK6YlcP EWBK28rJAJCQifbv6wQ4eTrHt1kQ9c6K+uGuVEPsEJQsN5luGos95WeGute4kqE8Thq8 3aJPkv9W9VahjYCeNKevIIPj63lGct2r5613qxP3CRkbJL2eLB9W2WnRbXKKXj2V15dq 5w== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3m7yrf1qse-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 04 Dec 2022 09:23:25 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2B49NOAR019690 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 4 Dec 2022 09:23:24 GMT Received: from jprakash-linux.qualcomm.com (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.986.36; Sun, 4 Dec 2022 01:23:20 -0800 From: Jishnu Prakash To: , , , , , , , , , CC: , , , Jishnu Prakash Subject: [PATCH] Update spmi driver removal API Date: Sun, 4 Dec 2022 14:52:59 +0530 Message-ID: <1670145780-13111-1-git-send-email-quic_jprakash@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) 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-GUID: D8KvXx7n_6f8BJWYplUB_ME1UuEOFG7p X-Proofpoint-ORIG-GUID: D8KvXx7n_6f8BJWYplUB_ME1UuEOFG7p X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-04_06,2022-12-01_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 mlxlogscore=383 phishscore=0 malwarescore=0 impostorscore=0 suspectscore=0 adultscore=0 clxscore=1011 mlxscore=0 spamscore=0 priorityscore=1501 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2212040087 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a check for remove callback presence before calling it, to avoid NULL pointer dereference error when attempting to remove a SPMI driver module which does not have the remove callback defined. Jishnu Prakash (1): spmi: Add check for remove callback in spmi_drv_remove API drivers/spmi/spmi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4