Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265115AbUATBUu (ORCPT ); Mon, 19 Jan 2004 20:20:50 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264934AbUATBTA (ORCPT ); Mon, 19 Jan 2004 20:19:00 -0500 Received: from mail.kroah.org ([65.200.24.183]:32457 "EHLO perch.kroah.org") by vger.kernel.org with ESMTP id S265350AbUATBMt convert rfc822-to-8bit (ORCPT ); Mon, 19 Jan 2004 20:12:49 -0500 Subject: Re: [PATCH] Driver Core update and fixes for 2.6.1 In-Reply-To: <1074561161776@kroah.com> X-Mailer: gregkh_patchbomb Date: Mon, 19 Jan 2004 17:12:41 -0800 Message-Id: <1074561161146@kroah.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII To: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 7BIT From: Greg KH Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 29 ChangeSet 1.1505, 2004/01/19 16:57:07-08:00, greg@kroah.com [PATCH] Kobject: prevent oops in kset_find_obj() if kobject_name() is NULL Thanks to Hollis Blanchard for pointing this out. lib/kobject.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/lib/kobject.c b/lib/kobject.c --- a/lib/kobject.c Mon Jan 19 17:04:40 2004 +++ b/lib/kobject.c Mon Jan 19 17:04:40 2004 @@ -547,7 +547,7 @@ down_read(&kset->subsys->rwsem); list_for_each(entry,&kset->list) { struct kobject * k = to_kobj(entry); - if (!strcmp(kobject_name(k),name)) { + if (kobject_name(k) && (!strcmp(kobject_name(k),name))) { ret = k; break; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/