Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21903132ybl; Mon, 6 Jan 2020 13:46:18 -0800 (PST) X-Google-Smtp-Source: APXvYqz/gKokH6ldQVlZ51qQJVogpXKdIb45ZLLX6RRBXAQzeloM8IhOASkP2rmTb9geOE+zFbvH X-Received: by 2002:a05:6830:c2:: with SMTP id x2mr107298748oto.8.1578347178840; Mon, 06 Jan 2020 13:46:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578347178; cv=none; d=google.com; s=arc-20160816; b=Bw6qyAbzGrIXcFApRJ5eJrhDdEuvv5weHQw6hf6iMAiVwfyQWhnjZ3ge6AibjCftc2 R0fn39LcoriplglZa6GCjSUZPYjwdoDi1ZwAXxwHXrqf3s13F0TuWKFbdAyC7n5r7VHn OksT74CjdJQbzQ8mBoKfDB/edLr284KwDnNe02QWOcRJ+CAGDMezF1wzlvbYKTPmg4v1 Z86/K7aYgEJcWKdLAJ9Bvj8tzRrf7NrbxTKshGWLvRWpeNlLhzAo3bzp9f97x9ahklWs k/f70x+Oz/QoRpRVyComQAiCn4LvQ/h/hatK0WiRyLKjaWxrpjshskaORchBcJiPAP/7 +mvA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=ZjQqjrgkh7UnNQJ1G1FfRv0Qnrcc+UBzR3ffHuWmJLo=; b=LMsQyUTZjfXwVbLX/LUh47q38MDNLXuq5uMirqBbt+9kEaz1WFAfs5S1Zta6lptZW/ TB7gxJ13p5Kmu1mDCEBdOxAlaKCGaIrIXuMrPZ0K/l516/k4xvpcq5jmxPaTn/prctDr tFjsEfnOv2jk9XB4rDWuNJ68myrdrq53W0Wzc5bePXIQdMvjsTILp7IsOGrdPe/Q0cNs fEr4DLBnxYjVTh1Hoi4ia+wPECB+zIz7Z+GcL32JQSFWoGg8MJgsP0ggog8dhcfxqond 38S6FAm9qft3n2WoVtWU2apusxBAcegOcsthorF1lo/bENi+aPp2YR3liMtgz/gdrgdA zlKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=T0Cp49iN; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f18si2547611otl.29.2020.01.06.13.46.06; Mon, 06 Jan 2020 13:46:18 -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=@chromium.org header.s=google header.b=T0Cp49iN; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbgAFVpV (ORCPT + 99 others); Mon, 6 Jan 2020 16:45:21 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:46994 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbgAFVpV (ORCPT ); Mon, 6 Jan 2020 16:45:21 -0500 Received: by mail-lj1-f194.google.com with SMTP id m26so50031368ljc.13 for ; Mon, 06 Jan 2020 13:45:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZjQqjrgkh7UnNQJ1G1FfRv0Qnrcc+UBzR3ffHuWmJLo=; b=T0Cp49iNhBPtry9RRB9H+4/H9Cnci8jBAdb1agffxxbBZu6dSlRujUOlO6q/7+po8t NukgfrM75WAPZX1AMqK16k1GbqFYWxukeGtta3bKoaYbWTZfheDRoEVQpqgjbqrwy3vD qu9KIfq92QbOMNPQ6wY4GF+gKyepaOsnp5LmA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZjQqjrgkh7UnNQJ1G1FfRv0Qnrcc+UBzR3ffHuWmJLo=; b=dNY3+yNKyhIfGlL7DznVLJPBgtAkzuEAYXYOIf6lQjQBeH+AHzUpVCEz3SmFEsFSnz ZbmqcAB8aKtqgT4GBULoONtV+4+kmmMHnHSw1k310H+l9mfQrTbD1vum0fJeOlVvqeBP yut/KDluqyGXsnKrCvJsxb7tCGGCUWghAsqkRzqLAMzbJl3evRocU/kAI3Cfau3OmvrP zUfzclZ5Y/QZsTekHodNRgIB/1G6JnDIJmCceyouyjTqfyOBmDGoo0lcrSXMDLwhX+m+ aRVEI5Xj3FGmirdmnfHEfRKFMQma0sZhiiuKipJNFSiRiMxd2XAjOYsdihQMRQ0L01Ut zmSw== X-Gm-Message-State: APjAAAW8Fqb2FH0CpRSc+AJxku3XrMgzYA6DcE8ORoaAMToH16iFnhAw yFaT+adjeSeNTmW6CSyj45ZRhSxQaLg= X-Received: by 2002:a2e:9013:: with SMTP id h19mr62132570ljg.223.1578347118800; Mon, 06 Jan 2020 13:45:18 -0800 (PST) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id h24sm29694295ljc.84.2020.01.06.13.45.17 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jan 2020 13:45:18 -0800 (PST) Received: by mail-lj1-f174.google.com with SMTP id u1so52472018ljk.7 for ; Mon, 06 Jan 2020 13:45:17 -0800 (PST) X-Received: by 2002:a2e:9e4c:: with SMTP id g12mr60097737ljk.15.1578347117398; Mon, 06 Jan 2020 13:45:17 -0800 (PST) MIME-Version: 1.0 References: <20200106172746.19803-1-georgi.djakov@linaro.org> In-Reply-To: <20200106172746.19803-1-georgi.djakov@linaro.org> From: Evan Green Date: Mon, 6 Jan 2020 13:44:41 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] interconnect: Check for valid path in icc_set_bw() To: Georgi Djakov Cc: linux-pm@vger.kernel.org, Bjorn Andersson , David Dai , Odelu Kukatla , Jordan Crouse , LKML 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 Mon, Jan 6, 2020 at 9:27 AM Georgi Djakov wrote: > > Use IS_ERR() to ensure that the path passed to icc_set_bw() is valid. > > Signed-off-by: Georgi Djakov Reviewed-by: Evan Green