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.80.1 #2 (Red Hat Linux)) id 1WBsyZ-00004u-OD for barebox@lists.infradead.org; Fri, 07 Feb 2014 21:28:47 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Fri, 7 Feb 2014 22:28:03 +0100 Message-Id: <1391808493-27328-1-git-send-email-u.kleine-koenig@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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 01/11] net: net_read_uint32: assert that only 32 bit are read To: barebox@lists.infradead.org T24gc29tZSBhcmNoaXRlY3R1cmVzIChlLmcuIGFscGhhLCBhbWQ2NCwgYXJtNjQsIGlhNjQsIHMz OTB4LCBtaXBzNjQpCnNpemVvZih1bG9uZykgaXMgOCB3aGljaCBtYWRlIG5ldF9yZWFkX3VpbnQz MiBhY3R1YWxseSByZWFkIHRvbyBtdWNoIGFuZApldmVuIHJldHVybmVkIHRoZSB3cm9uZyB2YWx1 ZSBvbiBiaWcgZW5kaWFuIG1hY2hpbmVzLgooTm90ZSB0aGUgc2Vjb25kIGlzc3VlIGlzbid0IHRo YXQgY3JpdGljYWwgdGhvdWdoLCBiZWNhdXNlIHRoZSBvbmx5CmFyY2hpdGVjdHVyZSBmcm9tIHRo ZSBsaXN0IGFib3ZlIHRoYXQgdXNlcyBiaWcgZW5kaWFuIGJ5dGUgb3JkZXIgaXMgczM5MHgKLi4u KQoKQWxzbyBjaGFuZ2UgdGhlIGFyZ3VtZW50IHRvIHZvaWQgKiBiZWNhdXNlIHRoZSBwb2ludGVy IGlzIG5vdCBuZWNlc3NhcmlseQpwcm9wZXJseSBhbGlnb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