From mboxrd@z Thu Jan 1 00:00:00 1970 From: Duncan Sands Date: Fri, 09 Sep 2005 08:31:16 +0000 Subject: [PATCH] firmware_helper.c: correct amount uploaded Message-Id: <200509091031.17314.baldrick@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Uploading more than the buffer holds is not a good idea... --- udev-068/extras/firmware/firmware_helper.c.orig 2005-09-07 19:50:43.000000000 +0200 +++ udev-068/extras/firmware/firmware_helper.c 2005-09-08 19:54:28.000000000 +0200 @@ -120,7 +120,7 @@ while (count < fw_buffer_size) { int c; - c = write(fw_fd, fw_buffer+count, fw_buffer_size); + c = write(fw_fd, fw_buffer+count, fw_buffer_size-count); if (c <= 0) { rc = errno; close(fw_fd); ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel