Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3697
b: refs/heads/master
c: e20d664
h: refs/heads/master
i:
  3695: 751b072
v: v3
  • Loading branch information
Duncan Sands authored and Greg Kroah-Hartman committed Jun 27, 2005
1 parent 8c72048 commit 33455c3
Show file tree
Hide file tree
Showing 2 changed files with 12 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: 86699e35923366ccb5c3451d24e94deb9dd0af29
refs/heads/master: e20d6645f794b51835e6f740a5b6f95c7e3fd843
21 changes: 11 additions & 10 deletions trunk/drivers/usb/atm/usbatm.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,6 @@ static void usbatm_extract_cells(struct usbatm_data *instance,
struct usbatm_vcc_data *cached_vcc = NULL;
struct atm_vcc *vcc;
struct sk_buff *sarb;
struct usbatm_vcc_data *vcc_data;
unsigned int stride = instance->rx_channel.stride;
int vci, cached_vci = 0;
short vpi, cached_vpi = 0;
Expand All @@ -311,18 +310,20 @@ static void usbatm_extract_cells(struct usbatm_data *instance,

vdbg("%s: vpi %hd, vci %d, pti %d", __func__, vpi, vci, pti);

if (cached_vcc && (vci == cached_vci) && (vpi == cached_vpi))
vcc_data = cached_vcc;
else if ((vcc_data = usbatm_find_vcc(instance, vpi, vci))) {
cached_vcc = vcc_data;
if ((vci != cached_vci) || (vpi != cached_vpi)) {
cached_vpi = vpi;
cached_vci = vci;
} else {
atm_dbg(instance, "%s: unknown vpi/vci (%hd/%d)!\n", __func__, vpi, vci);
continue;

cached_vcc = usbatm_find_vcc(instance, vpi, vci);

if (!cached_vcc)
atm_dbg(instance, "%s: unknown vpi/vci (%hd/%d)!\n", __func__, vpi, vci);
}

vcc = vcc_data->vcc;
if (!cached_vcc)
continue;

vcc = cached_vcc->vcc;

/* OAM F5 end-to-end */
if (pti == ATM_PTI_E2EF5) {
Expand All @@ -331,7 +332,7 @@ static void usbatm_extract_cells(struct usbatm_data *instance,
continue;
}

sarb = vcc_data->sarb;
sarb = cached_vcc->sarb;

if (sarb->tail + ATM_CELL_PAYLOAD > sarb->end) {
atm_dbg(instance, "%s: buffer overrun (sarb->len %u, vcc: 0x%p)!\n",
Expand Down

0 comments on commit 33455c3

Please sign in to comment.