| To: | linville@tuxdriver.com |
|---|---|
| Subject: | [PATCH v2 09/11] MIPS: BCM47XX: fix signature of nvram_parse_macaddr |
| From: | Hauke Mehrtens <hauke@hauke-m.de> |
| Date: | Tue, 28 Feb 2012 00:56:12 +0100 |
| Cc: | zajec5@gmail.com, b43-dev@lists.infradead.org, linux-mips@linux-mips.org, linux-wireless@vger.kernel.org, arend@broadcom.com, m@bues.ch, ralf@linux-mips.org, Hauke Mehrtens <hauke@hauke-m.de> |
| In-reply-to: | <1330386974-4056-1-git-send-email-hauke@hauke-m.de> |
| References: | <1330386974-4056-1-git-send-email-hauke@hauke-m.de> |
| Sender: | linux-mips-bounce@linux-mips.org |
Explicitly enforce an char array of 6 bytes for the mac address.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
arch/mips/include/asm/mach-bcm47xx/nvram.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/include/asm/mach-bcm47xx/nvram.h
b/arch/mips/include/asm/mach-bcm47xx/nvram.h
index 184d5ec..69ef3ef 100644
--- a/arch/mips/include/asm/mach-bcm47xx/nvram.h
+++ b/arch/mips/include/asm/mach-bcm47xx/nvram.h
@@ -37,7 +37,7 @@ struct nvram_header {
extern int nvram_getenv(char *name, char *val, size_t val_len);
-static inline void nvram_parse_macaddr(char *buf, u8 *macaddr)
+static inline void nvram_parse_macaddr(char *buf, u8 macaddr[6])
{
if (strchr(buf, ':'))
sscanf(buf, "%hhx:%hhx:%hhx:%hhx:%hhx:%hhx", &macaddr[0],
--
1.7.5.4
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v2 08/11] MIPS: BCM47XX: return number of written bytes in nvram_getenv, Hauke Mehrtens |
|---|---|
| Next by Date: | [PATCH v2 11/11] MIPS: BCM47XX: provide sprom to bcma bus, Hauke Mehrtens |
| Previous by Thread: | [PATCH v2 08/11] MIPS: BCM47XX: return number of written bytes in nvram_getenv, Hauke Mehrtens |
| Next by Thread: | [PATCH v2 11/11] MIPS: BCM47XX: provide sprom to bcma bus, Hauke Mehrtens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |