Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263405
b: refs/heads/master
c: 78bb969
h: refs/heads/master
i:
  263403: 4d38f12
v: v3
  • Loading branch information
Vijay Badawadagi authored and Greg Kroah-Hartman committed Aug 22, 2011
1 parent d270417 commit 1dd4680
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74a4fcf19eed6550651f455db5741fd216b4f004
refs/heads/master: 78bb9697e2c4b62c426f1a2571c293a2e4463adf
7 changes: 7 additions & 0 deletions trunk/drivers/misc/ti-st/st_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ void st_int_recv(void *disc_data,
/* Unknow packet? */
default:
type = *ptr;
if (st_gdata->list[type] == NULL) {
pr_err("chip/interface misbehavior dropping"
" frame starting with 0x%02x", type);
goto done;

}
st_gdata->rx_skb = alloc_skb(
st_gdata->list[type]->max_frame_size,
GFP_ATOMIC);
Expand All @@ -354,6 +360,7 @@ void st_int_recv(void *disc_data,
ptr++;
count--;
}
done:
spin_unlock_irqrestore(&st_gdata->lock, flags);
pr_debug("done %s", __func__);
return;
Expand Down

0 comments on commit 1dd4680

Please sign in to comment.