Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180391
b: refs/heads/master
c: 8ed030d
h: refs/heads/master
i:
  180389: 04916c6
  180387: 5ea3b78
  180383: 748641e
v: v3
  • Loading branch information
Gerrit Renker authored and David S. Miller committed Feb 4, 2010
1 parent 19abec6 commit 617fc8b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: f6815077e75c5b7f55b56fc3788e328514d4e72a
refs/heads/master: 8ed030dd0aa400d18c63861c2c6deb7c38f4edde
2 changes: 1 addition & 1 deletion trunk/net/dccp/ccid.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static struct kmem_cache *ccid_kmem_cache_create(int obj_size, char *slab_name_f
va_list args;

va_start(args, fmt);
vsnprintf(slab_name_fmt, sizeof(slab_name_fmt), fmt, args);
vsnprintf(slab_name_fmt, CCID_SLAB_NAME_LENGTH, fmt, args);
va_end(args);

slab = kmem_cache_create(slab_name_fmt, sizeof(struct ccid) + obj_size, 0,
Expand Down
8 changes: 5 additions & 3 deletions trunk/net/dccp/ccid.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
#include <linux/list.h>
#include <linux/module.h>

#define CCID_MAX 255
/* maximum value for a CCID (RFC 4340, 19.5) */
#define CCID_MAX 255
#define CCID_SLAB_NAME_LENGTH 32

struct tcp_info;

Expand Down Expand Up @@ -49,8 +51,8 @@ struct ccid_operations {
const char *ccid_name;
struct kmem_cache *ccid_hc_rx_slab,
*ccid_hc_tx_slab;
char ccid_hc_rx_slab_name[32];
char ccid_hc_tx_slab_name[32];
char ccid_hc_rx_slab_name[CCID_SLAB_NAME_LENGTH];
char ccid_hc_tx_slab_name[CCID_SLAB_NAME_LENGTH];
__u32 ccid_hc_rx_obj_size,
ccid_hc_tx_obj_size;
/* Interface Routines */
Expand Down

0 comments on commit 617fc8b

Please sign in to comment.