Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 340957
b: refs/heads/master
c: 82dec34
h: refs/heads/master
i:
  340955: d780cf3
v: v3
  • Loading branch information
Waldemar Rymarkiewicz authored and Samuel Ortiz committed Oct 26, 2012
1 parent b3b9aff commit 45dc011
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: a8df0f379213f190eff5f1cfe6b9f81475068d20
refs/heads/master: 82dec34df64620a0e06ea6f7020092e41244c3c2
8 changes: 6 additions & 2 deletions trunk/drivers/nfc/pn533.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ MODULE_DEVICE_TABLE(usb, pn533_table);
#define PN533_LISTEN_TIME 2

/* frame definitions */
#define PN533_NORMAL_FRAME_MAX_LEN 262 /* 6 (PREAMBLE, SOF, LEN, LCS, TFI)
254 (DATA)
2 (DCS, postamble) */

#define PN533_FRAME_TAIL_SIZE 2
#define PN533_FRAME_SIZE(f) (sizeof(struct pn533_frame) + f->datalen + \
PN533_FRAME_TAIL_SIZE)
Expand Down Expand Up @@ -2373,9 +2377,9 @@ static int pn533_probe(struct usb_interface *interface,
goto error;
}

dev->in_frame = kmalloc(dev->in_maxlen, GFP_KERNEL);
dev->in_frame = kmalloc(PN533_NORMAL_FRAME_MAX_LEN, GFP_KERNEL);
dev->in_urb = usb_alloc_urb(0, GFP_KERNEL);
dev->out_frame = kmalloc(dev->out_maxlen, GFP_KERNEL);
dev->out_frame = kmalloc(PN533_NORMAL_FRAME_MAX_LEN, GFP_KERNEL);
dev->out_urb = usb_alloc_urb(0, GFP_KERNEL);

if (!dev->in_frame || !dev->out_frame ||
Expand Down

0 comments on commit 45dc011

Please sign in to comment.