Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 13 Feb 2003 10:29:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 13 Feb 2003 10:29:42 -0500 Received: from air-2.osdl.org ([65.172.181.6]:59010 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id ; Thu, 13 Feb 2003 10:29:41 -0500 Date: Thu, 13 Feb 2003 09:33:07 -0600 (CST) From: Patrick Mochel X-X-Sender: To: Rusty Lynch cc: lkml Subject: Re: [PATCH][2.5.60 Trivial] Sysfs not handling show errors In-Reply-To: <1045089456.1150.6.camel@vmhack> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 605 Lines: 19 On 12 Feb 2003, Rusty Lynch wrote: > Attempting to cat a sysfs file that returns an error will result in an > endless dump of garbage to the screen because the result of the specific > show operation was being saved to a size_t (unsigned) and then later > checked for a negative value. > > Here is a trivial patch to fix the error. Thanks, applied. -pat - 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/