Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4809033imm; Wed, 30 May 2018 12:25:32 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJBjRj4OHOXeyE0hmmKSP50H2pABeSIJSQmxblfysc9t1Olzs0Y6pO3dfPgO3/VDZZd7Afc X-Received: by 2002:a17:902:1023:: with SMTP id b32-v6mr4024182pla.145.1527708332921; Wed, 30 May 2018 12:25:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527708332; cv=none; d=google.com; s=arc-20160816; b=Cxa7a7GQsharFoKcacCcbZOcr1LzpqawSIXYiKicDyEmdWpQIRozLOyQoisyCU/r3k lzi07JCvndEeQ6osfYxr+YMav5AFdLTLweDyPofhju7jf95FUJueneHDU9q0mw/r/hY7 4XvenLTcmqGAEcqfZfXJHeGU9JZoKjxkorz93jJh+MPc0EkCo+qNKp+iTtYe7MawOguz GkeclIuBmgfi/EEOWAMiEF3tpIlDMorwGzvE9kOYtSe1bYAf+FFuq8q/iK+dD5ymDvTl i8dd+51McYmZlFWWjvhaJv4RYJj9lQwPPXgG1uUe1b8rn/TBxQjMb8UaqCYwwITvNxoa yBbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from :arc-authentication-results; bh=ataw//QbP+s7MqwTQL11vOydWGTtexJWC/rvemelnzY=; b=uPuKnNsZcBSyClBf91U7bOCK3+7FCGLh7LlE2kh90IAttUWHvbdp4B6k4EughYjBgS oYNH+HkR7VGqQnQmAipJbcxObxrFOWs1qaCNtp7qp19uAKGWOiNXVwRqI69UNtA3ndt7 MauBbmBMIUhq6a8oGDO0ZDbdopXNDmXXrDBxd8QQIYht9NJ/J8dRkSCnPWKgRrZUpe0P HTVFPIAmGUwecOZDLcbtcZwY3tSvl7G+PbCVm5uNN9l4bsngAflSifLaQnflh8PPKwSE 0T8ktw+uiCW+0qQv4NuHhULM4OmqW+RLRRKokcbxmW8PUp89887kRTH10G0EZbJCDWLj BcJA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4-v6si33756619pfm.110.2018.05.30.12.25.18; Wed, 30 May 2018 12:25:32 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753740AbeE3TXX (ORCPT + 99 others); Wed, 30 May 2018 15:23:23 -0400 Received: from anholt.net ([50.246.234.109]:46672 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932108AbeE3TXW (ORCPT ); Wed, 30 May 2018 15:23:22 -0400 Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 30B0910A188D; Wed, 30 May 2018 12:23:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id YWNVLi7AhFKO; Wed, 30 May 2018 12:23:21 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 1384A10A0D70; Wed, 30 May 2018 12:23:21 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id A87C02FE2D89; Wed, 30 May 2018 12:23:20 -0700 (PDT) From: Eric Anholt To: Stefan Wahren , Jassi Brar Cc: Florian Fainelli , Ray Jui , Scott Branden , Phil Elwell , bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Stefan Wahren Subject: Re: [PATCH] mailbox: bcm2835: Fix of_xlate return value In-Reply-To: <1527330240-6181-1-git-send-email-stefan.wahren@i2se.com> References: <1527330240-6181-1-git-send-email-stefan.wahren@i2se.com> User-Agent: Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/25.2.2 (x86_64-pc-linux-gnu) Date: Wed, 30 May 2018 12:23:20 -0700 Message-ID: <87in75ne1j.fsf@anholt.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain Stefan Wahren writes: > The bcm2835-mailbox returns NULL instead of an error pointer, which could > result in a NULL ptr dereference in mbox_request_channel. So fix this > by returning a proper error pointer. > > Signed-off-by: Stefan Wahren > Fixes: 0bae6af6d704 ("mailbox: Enable BCM2835 mailbox support") Reviewed-by: Eric Anholt --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlsO+igACgkQtdYpNtH8 nuhUhA//Xx75OvJvsrIPDIcxa/6+Qco1Az24IsT4dHwNbheL5UUHz1xmwIlWzrJa S6c+1dTp+hiRUwlLyfskHQUTayucQnMybuF9BoePkUIYa2J4J9MdKnCSDxCZiScx 7M93inyCCdzloKR1WEW/UmgFs24iMFahgLxgZzHk0E2sW5+lx3EeYZYgSmtJQ5DJ UrYmriK9ZbJJJgFvuU3vXRlX2IW+1jePyw56wjRphDT4Rh/EtKBv7vlpFQzzJSjD Yp5UfR86wn0BqCIy8Zw0RpAFheN78g0TeQysDGcNaq4Sq+wYLIE16T7ItfgHFHig azzZ8x/pKwxoYE3yajv9j9NMwBhnw+/GWKH8J+PpbNzF1GWoP4hdo/MdJdyH8irL naGUZpxSIxEYZJlc8jZo0HsJNo4ptgQzp9jcsWR/Fdb2B/R5jf5KazKZS5+k2FkF xxd3sxBo6dVvjvdCrDAVgHNzAx5fSKNdsjPumDaIUGiVCAc6UupSc6neD1ExnwRz dGGZBV07bQV29M8CZrlncNow8umBsCpcZOMDvEPZdKQP2lxQyKIZ4uSlJw8sjamO pkrzA/abpeeelbH/bJmTcRrFeIXjlRmQZ92duRCwW0tf62MNy2dmIRpF5ZbNMxW0 mkZXnHkVS7CBIzF2J6te1NJPGnNW1V7zxKs0Cbto0KGlAeN772E= =Nwn/ -----END PGP SIGNATURE----- --=-=-=--