Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3512356pxk; Mon, 5 Oct 2020 11:34:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyh+DM28fRyBXhQIfkz3qkT6Vl7PaC8SFM66CPfRK5+ij+4+fPCrkkoy7Qkis4JAv04KQ6A X-Received: by 2002:a17:906:486:: with SMTP id f6mr1043571eja.473.1601922860673; Mon, 05 Oct 2020 11:34:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601922860; cv=none; d=google.com; s=arc-20160816; b=huGMlAJSjmDLeyzZkpwbE613z1XgrFQ1eJBBhz+twERhHIZlbc26M/SKj1UxsoBz1o g0sCpLnGULeofLPDYBs3M3Adx8CQ4K8CiO8CDiltYkRIb+2ksE3BIWpm8h52HjTNxyiz nYEDPh6V7+9sjmqEhfV/xZbklnLkUfj3XY+pTj5rdbG1UZyXAICioW0GI2QeW1C+e575 184lHcJQVksGr/Rx/7vzdZeB7JiZvEZuaax8qS7y2GHxew+SVzRfx+Nb9SGFdeHgPJKY JOM92C+rqVnz6Zp/cDMnYJT2NxJ0Nrqjmq2zmGZSFFofo/cSVqyP1PawgfO9goVc2iTb v97A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:subject :references:in-reply-to:message-id:cc:to:from:date:dkim-signature; bh=FyGnVACqUfIMK6u5r4pLOucerf6LwFRTJg4C0HOGYDc=; b=ciGNuryDFFNg9KCTmaKm8jvB1mbeKfblgcxXJP6yHU2OcvYtEjpmR2qWy8imwnM2Yi 5hNDwaA4TVlwO4cWg9eOsTxMukQ84cOPVSMBr2R2GDPqaFhdXQVpZIfYRoYloGIoL1ZI ud3HpFay4n03BVlww5PgHVjPs4edlAkSDzUgdePjlQ+ymyywvRrvk3Xutlw/K5uQI+O/ maRqjMV7A7KxMLNCrjBTi8mmUrsY0FLvM+wsBUG0mQ/Ivyys6pDWhuNbOLiTHTvLD/7w IARVfnwVKPlFOq/ib5OvkgPo1iixn9Bi3cI1XidqbGauP03TfcLve7YqzGagUzWssTMs fo5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tutanota.com header.s=s1 header.b=LPz0pzRV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tutanota.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b26si532281edw.538.2020.10.05.11.33.57; Mon, 05 Oct 2020 11:34:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@tutanota.com header.s=s1 header.b=LPz0pzRV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tutanota.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728181AbgJESbS (ORCPT + 99 others); Mon, 5 Oct 2020 14:31:18 -0400 Received: from w1.tutanota.de ([81.3.6.162]:35210 "EHLO w1.tutanota.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726935AbgJESbS (ORCPT ); Mon, 5 Oct 2020 14:31:18 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 9CDB6FA0400; Mon, 5 Oct 2020 18:31:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1601922676; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=FyGnVACqUfIMK6u5r4pLOucerf6LwFRTJg4C0HOGYDc=; b=LPz0pzRVpMFFYJFbY7NhGduQgYIm4s54WWDLM+LuKF1m+dNJkNzfl0HalHEWFzqm g3X8R1ESBEIn6Ewyp3IS+5aUNnlIui6UARYCAHbCQm4SFNOFojv3mzXwraVojnK8Irp 9tJ0oQXuY4X2C0Y/jJACEhxxhTboP00co9ejFbYi/8Qco6BFKaOOj05YZIZBtxwKau3 7AshDGb/pRyV59NIPCMmfhgvyzXdo+Apc9Ral6quuty392PPRXQTcwxvX8nhYcDFmzN jp9/Wfh1q5vX4AhgEeBZnBI0ZtcA2MSxXI4755BZMT+ndmGsGcJLcVMBQnT0/yLisXR DhywylX+mA== Date: Mon, 5 Oct 2020 20:31:16 +0200 (CEST) From: ultracoolguy@tutanota.com To: Pavel Machek Cc: Alexander Dahl , Dmurphy , Marek Behun , Linux Leds , Linux Kernel Message-ID: In-Reply-To: References: <20201005141334.36d9441a@blackhole.sk> <3c5fce56-8604-a7d5-1017-8a075f67061e@ti.com> <966c3f39-1310-dd60-6f33-0d9464ed2ff1@ti.com> <20201005164808.slrtmsvmw4pvwppm@falbala.internal.home.lespocky.de> <20201005173227.GA6431@duo.ucw.cz> Subject: Re: [PATCH] leds: lm3697: Fix out-of-bound access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Otherwise everything works great :) (And sorry for sending two emails) Oct 5, 2020, 18:29 by ultracoolguy@tutanota.com: > This:=20 > > led->num_banks =3D count;=20 > > Has to be below devm_kzalloc. Else, it's NULL. > Oct 5, 2020, 17:32 by pavel@ucw.cz: > >> Hi! >> >>> Agh. I added the Signed-off-by in an earlier non-published version of t= he commit, but forgot to add it back. But that doesn't really excuses me. >>> >>> I attached the (hopefully) final version of this patch.=C2=A0 Pavel, I'= ll send the struct rename separately after I submit this.=20 >>> >> >> Thanks, I applied it with ... some tweaks. I hope I did not break it, >> and would not mind testing. >> >> Best regards, >> Pavel >> >> >> --=20 >> (english) http://www.livejournal.com/~pavelmachek >> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/= blog.html >> > >