Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2930775pxy; Mon, 3 May 2021 11:08:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+hGq2ikdcNPC65ejR7MjO31fxCQ6PHpzY43LHxCzNAADgAcBr2iXRoMElSbdY+d9cJ3b6 X-Received: by 2002:a17:902:d718:b029:ee:cf89:57ea with SMTP id w24-20020a170902d718b02900eecf8957eamr8390636ply.3.1620065299839; Mon, 03 May 2021 11:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065299; cv=none; d=google.com; s=arc-20160816; b=aXwLX3v+VlRApiOtxrEmx7JgyeR/vtxJTKfB5G+6RDTcmfLcGdlpPY3iab1mLVo5l7 EeBrqmaW4dzuvYEkWN8Ho6p8MtTb24XcFu5YXz5tl7pxNbr7l79Hx26YXS1aP965WAkd 5iKbi5cX2+0ihoNlhui7NELTap92ZUazDZuJyLi5B/QviKxUl3Mmc44Uo0wnGW+4jOTn 40cSurSbu4sjOwLGNqXRH4JSC5cEUQ6lQILonLJ7h8dCM9TLeB1GthXiBmPKDmfOm12i sO2btiWdaTdzDel6RFGr6JkMTyEK5u8+BnqrTzqobGH2dcHiRz/ULF5iBw+EPL1uZF7R GlkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Q9V3sWlCW289vOHtDNbnvObr5e7p0HB+zLIgi5F209s=; b=uwR1boVm3C/cFYnDJDEaPI8BRwyXp7lrCd0UYYNRtftFgztQOeunNCPMPshU6NfuPG 9OADbUPu1NqqTU+3QjIz42N8ItAlh8it4LgUVUoWKtk1IZfmt7reMnMRR0ZtkYwQu0JO rF2IJokk2Bh22D5kyb+U8NTVaOQKckUq9V3sQR0m7r/wVVNyYiQoUj4xR4pZxPHHinKs Xh2mJNJO2cenVPa1rmArZWs+Jozy1aqJReu70wxNsEpJ65a/Gf240GWtLEO6hCaX3c9f 66R+ljVPbPeRpttw76gR/bZ/NEBCNoHChylxhUS9Y+1apDYSCYTAyGWDkxo50M85Wj8N 3/5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lDNOaBUD; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si442005plp.326.2021.05.03.11.07.57; Mon, 03 May 2021 11:08:19 -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=@kernel.org header.s=k20201202 header.b=lDNOaBUD; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234311AbhECNlw (ORCPT + 99 others); Mon, 3 May 2021 09:41:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:59390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233582AbhECNlv (ORCPT ); Mon, 3 May 2021 09:41:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1CA376135C for ; Mon, 3 May 2021 13:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620049258; bh=kDHp/u/XlkkElW5panY+EF4GuxDYCLM2E/E+MRBnmgw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lDNOaBUD1+iVyLopOEazzUM26NZmQ5xx626vPAUEWjcNWOrG4oaERXYRqHapX4umo puLyrkFXqLO7vD7A3ER7nB5LafkSBF6WqlMrwjpL6PjlBssj08/gl9vV4gSweu4VCC 33Riy2QXglPCoExcqxhcUaKXtDsruGICv6Tj5DMueVm0QvlXjZLMBkd5v3ZbMic+Zf ldYuX9JnDnnCg8C69EF10vZPiN6VeK6gy4VYjsTraXayey9yHPKcAo/mJTWQMjZ+9M vta7B9uu9SUPR3G/3C5c7upm0SH2t1eHRFiamgOVGHUPZ4SjZlt+uy8+nzacVcf5nh wvoXYqRsnPWgA== Received: by mail-ed1-f50.google.com with SMTP id d14so6280700edc.12 for ; Mon, 03 May 2021 06:40:58 -0700 (PDT) X-Gm-Message-State: AOAM533IlAqqtfu6z5i5XquTrHVqQmdHS1XxkzO6IH7xARB5o9yj2glu YZOWSVrY1UfxhPyfw7659p5GbHRzntfJKkTmWg== X-Received: by 2002:a05:6402:1e4:: with SMTP id i4mr19837242edy.62.1620049256517; Mon, 03 May 2021 06:40:56 -0700 (PDT) MIME-Version: 1.0 References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> <20210503115736.2104747-68-gregkh@linuxfoundation.org> In-Reply-To: <20210503115736.2104747-68-gregkh@linuxfoundation.org> From: Rob Herring Date: Mon, 3 May 2021 08:40:45 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 67/69] video: imsttfb: check for ioremap() failures To: Greg Kroah-Hartman Cc: "linux-kernel@vger.kernel.org" , Finn Thain , Bartlomiej Zolnierkiewicz Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 3, 2021 at 7:01 AM Greg Kroah-Hartman wrote: > > We should check if ioremap() were to somehow fail in imsttfb_probe() and > handle the unwinding of the resources allocated here properly. > > Ideally if anyone cares about this driver (it's for a PowerMac era PCI > display card), they wouldn't even be using fbdev anymore. Or the devm_* > apis could be used, but that's just extra work for diminishing > returns... > > Cc: Finn Thain > Cc: Rob Herring > Cc: Bartlomiej Zolnierkiewicz > Signed-off-by: Greg Kroah-Hartman > --- > drivers/video/fbdev/imsttfb.c | 21 ++++++++++++++++++--- > 1 file changed, 18 insertions(+), 3 deletions(-) Reviewed-by: Rob Herring