Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4680390ima; Mon, 4 Feb 2019 22:43:28 -0800 (PST) X-Google-Smtp-Source: AHgI3IY/IXUrXtudOwY1AtLHWIbMl05artI0Z15PMPSOd+8SYJky6ua7bWGGBGGSmEi7GlA74zB/ X-Received: by 2002:a17:902:f44:: with SMTP id 62mr3579405ply.38.1549349008148; Mon, 04 Feb 2019 22:43:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549349008; cv=none; d=google.com; s=arc-20160816; b=lXYiWRcaLQ/80llmhfKJBLfgMGs5SlT8Am3DpWsiPNRCM+mHY+IapEuKuGeJCaj2dZ ylB56HrR4WJQ+xv0jg7kwHj3K0DqKvT9Yug17q/MRcHxgijtypXKtwZqvrFjtGzUORdh AO/yWJeZYYhuPEv1Gsqg0YSVG3YvAZw40dSTG1GeUZgPasNVdn3C1g5LnIz9jk9fo980 qLabsqE6v3UX8PowFILgGFoDHM03SVLTry2jlu4Xnqo48/2c/Zsl/p/1E8YHkC/v8dci iQc1eoU1w/7esPJdo5JkgoCytZGmcDQUN+mXnZ6qiB69L+v5IR03unCqki9tR4IzEdYS F6rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=AoCtcolpsDq3ZvsC0O7qKcicqzlwuQY8E2inQ9xRxj4=; b=OVB8Zk9I4C9KQR7PbXmHntLtihYPFvBDD7wTAdrFPjOl72AwHU+q408SPo3Uz6DLBn UeE42hHyKOOYg1Z9wlLFEAKc3HQDnXvAWXp+gOH41BR7pS7tb0RS+fDSShBh/eMg8iG+ LNTtr/lmiAAn9yULuNuWK7qXpYkPizN65ux2LvjvQxp3SihMIZLoiYu6OR6XzF2Cx12V 2GHPyeQ2z5bsRdLq/BPa898CvJ5iyDQL7j18x3LWW0PyOQBJ1v0ahAofJLq/rASNkRJT AaqQIoZ3Bg4qhlMAcbj6SkQjDk4e0/BPVOsHdIJ+b0KEhB2yLn5vzDkr2awbYj3GuRsK y57w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="tCp/YM+e"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l7si2312250pfg.245.2019.02.04.22.43.11; Mon, 04 Feb 2019 22:43:28 -0800 (PST) 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=@gmail.com header.s=20161025 header.b="tCp/YM+e"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727174AbfBEGnG (ORCPT + 99 others); Tue, 5 Feb 2019 01:43:06 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41884 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726416AbfBEGnF (ORCPT ); Tue, 5 Feb 2019 01:43:05 -0500 Received: by mail-pg1-f196.google.com with SMTP id m1so1005087pgq.8; Mon, 04 Feb 2019 22:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=AoCtcolpsDq3ZvsC0O7qKcicqzlwuQY8E2inQ9xRxj4=; b=tCp/YM+ed56uM7agCblTkxfj2QquvOOh02Rq+KD7HLlaomCsUG89rahICi/lGqRBzm NtvhNBdB9UpHq7XqDPajkSPC7jxhXj+fImLeR8j4QZfnFurUe/Rh72EFkbiSB0IeElUW nx2YwVnQaUO/e+5sHvntRIUen5TFlRxUFIQT+MqQC224V1S5kwOIxGneQ47eNaD7pSZc WrcjQQTA9xZFx4mDrSAr/Ngqn2xV3pJ8ENd4AYxHIcEDMQOcadf6/abJ2vCP1at3DKVW ZVBSIg2RU2Ryv8e4Vywqobob3TnE2MfU9TboH3K/V4uIofUHs3leChIrsN5wTODt3iXV J/fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=AoCtcolpsDq3ZvsC0O7qKcicqzlwuQY8E2inQ9xRxj4=; b=R3hxXADSIX16TCXoBMP1NrVoAb+DAL34Z8BuoW5Si5prKaiSQ/g5USQP3BzkE15lhx ygIf3+A9AJ5HrSoeY/FJrSuH2kQ6jIp6j1b0PE872/1MxkFrf51GFIHw+/WRkFF/ARnZ ekMGI0ibBJo0IAmTkWkO4lwhuNRFOcnkyYav70QUMWZfs2mUWpwvvW1fs8uHRtSg6x0D TRMVBV3kheHWyOx+ni6wQ09pZKC9ejRu0WQY5lkAOWwxiSTnzgSTHjM7OBbkz3LFA+Pb YNdfSQ5JDmsJnjLoFfKpyf+7mTxP+Vzreb3v4U4YnFJ+zuJ6nS9HzNdz2b/8SAPD6H0I n3Ew== X-Gm-Message-State: AHQUAuYtwr79ugQFqbJdGoRgtE/WGTcmD0Hm0s/NMXfgsMqekGD55LeG mXYw+3rIHFvOn2rdVz8jyDU= X-Received: by 2002:a63:c444:: with SMTP id m4mr3178253pgg.310.1549348984849; Mon, 04 Feb 2019 22:43:04 -0800 (PST) Received: from localhost.localdomain (cpe-76-176-3-80.san.res.rr.com. [76.176.3.80]) by smtp.googlemail.com with ESMTPSA id k24sm2823687pfj.13.2019.02.04.22.43.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Feb 2019 22:43:04 -0800 (PST) From: Myungho Jung To: marcel@holtmann.org Cc: johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Myungho Jung Subject: [PATCH v3 0/2] Bluetooth: Add NULL check for tiocmget() and tiocmset() Date: Mon, 4 Feb 2019 22:41:40 -0800 Message-Id: X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tiocmget() and tiocmset() operations are optional and some tty drivers like pty miss the operations. Add NULL checks to prevent from dereference. Myungho Jung (2): Bluetooth: hci_ath: Add NULL check for tiocmget() and tiocmset() in ath_setup() Bluetooth: hci_ldisc: Add NULL check for tiocmget() and tiocmset() in hci_uart_set_flow_control() drivers/bluetooth/hci_ath.c | 6 ++++++ drivers/bluetooth/hci_ldisc.c | 4 ++++ 2 files changed, 10 insertions(+) -- 2.17.1