From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TQvsq-00058Z-6C for barebox@lists.infradead.org; Wed, 24 Oct 2012 08:00:14 +0000 From: Sascha Hauer Date: Wed, 24 Oct 2012 10:00:09 +0200 Message-Id: <1351065609-22101-3-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1351065609-22101-1-git-send-email-s.hauer@pengutronix.de> References: <1351065609-22101-1-git-send-email-s.hauer@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/2] fs tftp: Fix possible fifo overflow To: barebox@lists.infradead.org SW4gdGZ0cF9yZWFkIHdlIHNlbmQgYSByZXF1ZXN0IGZvciBhIG5ldyBwYWNrZXQgd2l0aG91dCBj aGVja2luZyBpZiB3ZQpoYXZlIGVub3VnaCBzcGFjZSBpbiB0aGUgRklGTy4gVGhpcyBjYW4gbGVh ZCB0byBhIEZJRk8gb3ZlcmZsb3cgYW5kIGEKY29ycnVwdCBmaWxlLiBBZGQgYSBjaGVjayBmb3Ig aXQuCgpTaWduZWQtb2ZmLWJ5OiBTYXNjaGEgSGF1ZXIgPHMuaGF1ZXJAcGVuZ3V0cm9uaXguZGU+ ClJlcG9ydGVkLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQHBlbmd1dHJv bml4LmRlPgpUZXN0ZWQtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS1rb2VuaWdAcGVu Z3V0cm9uaXguZGU+Ci0tLQogZnMvdGZ0cC5jIHwgICAgNiArKysrKy0KIDEgZm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