Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3581533pxk; Mon, 5 Oct 2020 13:32:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3YkcM/3xFQ3hPT8E97NDh3JquRwraf6qcSoUY98u2hxBx92Y7LIR/eEzLZmHu+IulKeO4 X-Received: by 2002:a50:bb4b:: with SMTP id y69mr1567127ede.319.1601929955314; Mon, 05 Oct 2020 13:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601929955; cv=none; d=google.com; s=arc-20160816; b=chixvRRxgBydReU179IXfPutwwk1D20DYTD52uRfdDi1BBzond8yyaT9YovOaCaTzS Zx1EMbwsIVoggVMSbW8E2njA4iZ6P3VZpQiP1YrZZ54fJQOLH3hDSrs78duh6xY6xFDC a99YUuePNCPMvk47yRCQ/RHTOZT/RqqQDsJZEKW3y+IwM46TwuGARKyeH8tRVuOLrSCm 3TOo5MQ2Fh42il0iuOrdCBOy/XJKD7sO8IQ81WR1GMM4iUbuWTfhr+6SZW06zBC5U9Zz /965SPnjbPc55NxOtI72rgGB9x4Sfc3ezMbtI8qFLptXpcbF9riX9M2VY4w5Jc/mYT+4 ixuw== 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=e3nRvAMrfUuqH8v5Lf03fytftHDw5teOnq4PUPpYSoM=; b=WrOdz/dvSmKlC5MUWOaQrDjx/Pc2mOnbSJL4kMIN7SQvivEj2TkaInPJDtE/v/JwJc nWct/k+53ETJDPhlvdQobQMFEHgZWABPZTPmBLgty/sJUSbpswOP6/DcRkc7Wu159qU8 YiGAI2BugErwOhLTe8jtrmlXj3hycPG4zZ+7F79Hm2bPnz9yBCFpK9F1k5VVwVG2Qxqd VPBfdcF/WUWCb0Kq2huGOp/LZcAJR+sXD1prehWW9exNSSAm2mHwUhfh8vn8Jl2zzBuW ENsf2JySP0OOXMvIKMuNcBTs8MiUcS5Sfn02VZEJxb1WZhdVvILHwy7Qa7vn1RNzAE6v ke4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tutanota.com header.s=s1 header.b="1NYLTZ1/"; 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 t23si537358ejs.552.2020.10.05.13.32.12; Mon, 05 Oct 2020 13:32:35 -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="1NYLTZ1/"; 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 S1727998AbgJES35 (ORCPT + 99 others); Mon, 5 Oct 2020 14:29:57 -0400 Received: from w1.tutanota.de ([81.3.6.162]:34914 "EHLO w1.tutanota.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725960AbgJES35 (ORCPT ); Mon, 5 Oct 2020 14:29:57 -0400 Received: from w3.tutanota.de (unknown [192.168.1.164]) by w1.tutanota.de (Postfix) with ESMTP id 13115FA03C9; Mon, 5 Oct 2020 18:29:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1601922595; 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=e3nRvAMrfUuqH8v5Lf03fytftHDw5teOnq4PUPpYSoM=; b=1NYLTZ1/q+7L2Sv4uQhdoBxrztBFE4UEk2LTAUjQ9uqzpYI5792jG0ZQ4Q2sSmAX af8SnQJq8H7FLallPiJX2KZfpy710Crklgr6w36XVZV+9kP5sp/KDmP46MLrCPCX478 5s8TyauJ4igtngYQshmej1aWLVGP5e+Y6rj3mPviriezN9X/Cchn3TBUW7JMIJA02Nu DOxW9R18awI60CMkvNix+GTgLq18i87K4Z8LH5NRY5HIRf+b/NbaSsolqxHMR3vqbVk TJOo3zkjmohd7Fu13cjXsJFSRTbVreBZbTBye8wPboi86OFMSduyV5FNkSewqAkU/1h q9TI9nbxOA== Date: Mon, 5 Oct 2020 20:29:55 +0200 (CEST) From: ultracoolguy@tutanota.com To: Pavel Machek Cc: Dmurphy , Alexander Dahl , Marek Behun , Linux Kernel , Linux Leds Message-ID: In-Reply-To: <20201005173227.GA6431@duo.ucw.cz> 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 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 th= e 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'l= l 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 > > --=20 > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/b= log.html >