Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220039
b: refs/heads/master
c: 0226655
h: refs/heads/master
i:
  220037: 0b5f009
  220035: 3447724
  220031: 43665b2
v: v3
  • Loading branch information
Jason Cooper authored and Greg Kroah-Hartman committed Oct 5, 2010
1 parent 1b01484 commit ce4a35b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 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: 59334c2f1fcc2c5ddb5828d93eba3bd486576cae
refs/heads/master: 02266551e8d02456c526422e94e9cbac9c3295df
25 changes: 15 additions & 10 deletions trunk/drivers/staging/brcm80211/brcmfmac/dhd_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,17 @@ dhdcdc_query_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf, uint len)
if (buf)
memcpy(prot->buf, buf, len);

if ((ret = dhdcdc_msg(dhd)) < 0) {
ret = dhdcdc_msg(dhd);
if (ret < 0) {
DHD_ERROR(("dhdcdc_query_ioctl: dhdcdc_msg failed w/status "
"%d\n", ret));
goto done;
}

retry:
/* wait for interrupt and get first fragment */
if ((ret = dhdcdc_cmplt(dhd, prot->reqid, len)) < 0)
ret = dhdcdc_cmplt(dhd, prot->reqid, len);
if (ret < 0)
goto done;

flags = ltoh32(msg->flags);
Expand Down Expand Up @@ -196,10 +198,12 @@ int dhdcdc_set_ioctl(dhd_pub_t *dhd, int ifidx, uint cmd, void *buf, uint len)
if (buf)
memcpy(prot->buf, buf, len);

if ((ret = dhdcdc_msg(dhd)) < 0)
ret = dhdcdc_msg(dhd);
if (ret < 0)
goto done;

if ((ret = dhdcdc_cmplt(dhd, prot->reqid, len)) < 0)
ret = dhdcdc_cmplt(dhd, prot->reqid, len);
if (ret < 0)
goto done;

flags = ltoh32(msg->flags);
Expand Down Expand Up @@ -369,7 +373,8 @@ int dhd_prot_hdrpull(dhd_pub_t *dhd, int *ifidx, void *pktbuf)

h = (struct bdc_header *)PKTDATA(pktbuf);

if ((*ifidx = BDC_GET_IF_IDX(h)) >= DHD_MAX_IFS) {
*ifidx = BDC_GET_IF_IDX(h);
if (*ifidx >= DHD_MAX_IFS) {
DHD_ERROR(("%s: rx data ifnum out of range (%d)\n",
__func__, *ifidx));
return BCME_ERROR;
Expand Down Expand Up @@ -402,15 +407,15 @@ int dhd_prot_attach(dhd_pub_t *dhd)
dhd_prot_t *cdc;

#ifndef DHD_USE_STATIC_BUF
if (!(cdc = (dhd_prot_t *) MALLOC(dhd->osh, sizeof(dhd_prot_t)))) {
cdc = (dhd_prot_t *) MALLOC(dhd->osh, sizeof(dhd_prot_t));
if (!cdc) {
DHD_ERROR(("%s: kmalloc failed\n", __func__));
goto fail;
}
#else
if (!
(cdc =
(dhd_prot_t *) dhd_os_prealloc(DHD_PREALLOC_PROT,
sizeof(dhd_prot_t)))) {
cdc = (dhd_prot_t *) dhd_os_prealloc(DHD_PREALLOC_PROT,
sizeof(dhd_prot_t));
if (!cdc) {
DHD_ERROR(("%s: kmalloc failed\n", __func__));
goto fail;
}
Expand Down

0 comments on commit ce4a35b

Please sign in to comment.