From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932430AbbCCD1q (ORCPT ); Mon, 2 Mar 2015 22:27:46 -0500 Received: from mail.windriver.com ([147.11.1.11]:37703 "EHLO mail.windriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756233AbbCCD13 (ORCPT ); Mon, 2 Mar 2015 22:27:29 -0500 Message-ID: <54F529B7.50306@windriver.com> Date: Mon, 2 Mar 2015 21:25:43 -0600 From: Jason Wessel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Daniel Thompson CC: , , Andrew Morton , Ingo Molnar , , , John Stultz , Sumit Semwal Subject: Re: [PATCH] kdb: Fix handling of kallsyms_symbol_next() return value References: <1425305616-19656-1-git-send-email-daniel.thompson@linaro.org> In-Reply-To: <1425305616-19656-1-git-send-email-daniel.thompson@linaro.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/02/2015 08:13 AM, Daniel Thompson wrote: > kallsyms_symbol_next() returns a boolean (true on success). Currently > kdb_read() tests the return value with an inequality that > unconditionally evaluates to true. > > This is fixed in the obvious way and, since the conditional branch is > supposed to be unreachable, we also add a WARN_ON(). > Thanks. Applied to kgdb-next. I'll send it along to the upstream before the end of the v4.0 cycle, we'll see if we pickup any other fixes along the way. :-) Cheers, Jason.