Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753897AbcLIXSl (ORCPT ); Fri, 9 Dec 2016 18:18:41 -0500 Received: from anholt.net ([50.246.234.109]:47844 "EHLO anholt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076AbcLIXSk (ORCPT ); Fri, 9 Dec 2016 18:18:40 -0500 From: Eric Anholt To: Pan Bian , David Airlie , dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, Pan Bian Subject: Re: [PATCH 1/1] dri: vc4: set error code on failure In-Reply-To: <1480756647-3673-1-git-send-email-bianpan2016@163.com> References: <1480756647-3673-1-git-send-email-bianpan2016@163.com> User-Agent: Notmuch/0.22.2+1~gb0bcfaa (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Fri, 09 Dec 2016 15:18:37 -0800 Message-ID: <87shpwlmia.fsf@eliezer.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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1438 Lines: 35 --=-=-= Content-Type: text/plain Pan Bian writes: > Function vc4_cl_lookup_bos() does not set the error code when > drm_malloc_ab() returns a NULL pointer, and will return 0 (indicates > success). This patch fixes the bug, assigning "-ENOMEM" to the return > variable ret on the path that memory allocation fails. > > Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188631 > Signed-off-by: Pan Bian This one was already fixed in b2cdeb19f16ad984eb5bb9193f793d05a8101511 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlhLO80ACgkQtdYpNtH8 nuhDpw//cUxP64gk2vrzRLyY7CiFTaXR+NthT3yLNGG3e8n1QTipRE5t4GdjWk5m wzZ+rb3xuLGHBtiYSau2Pbno/1ZhHVYWRnACmXhXUsiUOPkF48GxJ1mpU24/HdHP 7BwXn46E2njlJrLXz2vce897LMQuImIWM4iNLKGw75V3lUqZeekUP/zy25CJSVz2 7LSAW6h+84bLTqD37SqMfK4+VAwrwa+E1XZ93iaY1dGE7URRhinqOFH8CMxuSFE9 BQgGI35JjaDQdiUZ3QdySqAXt9bMrKrIOMDcWu3bxfSRZUxv8EUtqJ/gbHim+nsP QiPPgilaSB2ml/YkXJOjD0LHOmoPZ22BmhG7fwmwvmcC9dA3grwTCtkktOEtnXRJ Krx/xV+wqHYpcM4ZswPQyw1P5516UIlc9ih40DsnoYNGPkH38jh19bELG1NSG8QZ Bz0CnrZhq3ZD+uaxjynV/Bvt24Oa/jBghbEHOaXYRvHQwWPzWPIUkq8EOY9dJyaO 77DNtMjHzGGLiEVERQBYeDY1AjjyK4bKJfxUl7CA2bcRd4Rx8vBau3DrXwhrmedY RTWNHj4pDoH71TIRgCsvglpZCsvM/syEzukEbzkQawu3SeDZBNUG10hymS1YbMUR YiTe1RkLG4p3eRdT6u2ECgZYBhIT7cGTi8tqWppbwIYwu3e1soE= =yqFg -----END PGP SIGNATURE----- --=-=-=--