From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753200AbdHWBuM (ORCPT ); Tue, 22 Aug 2017 21:50:12 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60706 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752937AbdHWBuL (ORCPT ); Tue, 22 Aug 2017 21:50:11 -0400 Date: Tue, 22 Aug 2017 18:50:15 -0700 From: Greg Kroah-Hartman To: Dmitry Torokhov Cc: Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Riley Andrews , Martijn Coenen , John Stultz , Douglas Anderson , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] android: binder: check result of binder_get_thread() in binder_poll() Message-ID: <20170823015015.GA18140@kroah.com> References: <20170508204323.GA28410@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170508204323.GA28410@dtor-ws> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 08, 2017 at 01:43:23PM -0700, Dmitry Torokhov wrote: > If binder_get_thread() fails to give us a thread data, we should avoid > dereferencing a NULL pointer and return POLLERR instead. > > Signed-off-by: Dmitry Torokhov > Reviewed-by: Douglas Anderson > --- > drivers/android/binder.c | 12 ++++++++---- > 1 file changed, 8 insertions(+), 4 deletions(-) Doesn't apply to my tree at all :( Please rebase and resend, thanks. greg k-h