Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220263
b: refs/heads/master
c: cbf6baa
h: refs/heads/master
i:
  220261: e61b1da
  220259: c66007e
  220255: 450cc90
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Oct 9, 2010
1 parent 8ac50a4 commit 217ac86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf10700bf8047f0668dd874b607f89516612e6c7
refs/heads/master: cbf6baac775f2e3fb61f88dcaa71e44fb34b6906
5 changes: 2 additions & 3 deletions trunk/drivers/staging/brcm80211/brcmfmac/dhd_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ typedef struct dhd_if {
u8 mac_addr[ETHER_ADDR_LEN]; /* assigned MAC address */
bool attached; /* Delayed attachment when unset */
bool txflowcontrol; /* Per interface flow control indicator */
char name[IFNAMSIZ + 1]; /* linux interface name */
char name[IFNAMSIZ]; /* linux interface name */
} dhd_if_t;

/* Local private structure (extension of pub) */
Expand Down Expand Up @@ -1871,8 +1871,7 @@ dhd_add_if(dhd_info_t *dhd, int ifidx, void *handle, char *name,
memset(ifp, 0, sizeof(dhd_if_t));
ifp->info = dhd;
dhd->iflist[ifidx] = ifp;
strncpy(ifp->name, name, IFNAMSIZ);
ifp->name[IFNAMSIZ] = '\0';
strlcpy(ifp->name, name, IFNAMSIZ);
if (mac_addr != NULL)
memcpy(&ifp->mac_addr, mac_addr, ETHER_ADDR_LEN);

Expand Down

0 comments on commit 217ac86

Please sign in to comment.