ccid.c (d4bbf7e7759afc172e2bfbc5c416324590049cdd) ccid.c (2c53040f018b6c36a46eec75b9b937aaa5f78e6d)
1/*
2 * net/dccp/ccid.c
3 *
4 * An implementation of the DCCP protocol
5 * Arnaldo Carvalho de Melo <acme@conectiva.com.br>
6 *
7 * CCID infrastructure
8 *

--- 32 unchanged lines hidden (view full) ---

41 return false;
42 return true;
43}
44
45/**
46 * ccid_get_builtin_ccids - Populate a list of built-in CCIDs
47 * @ccid_array: pointer to copy into
48 * @array_len: value to return length into
1/*
2 * net/dccp/ccid.c
3 *
4 * An implementation of the DCCP protocol
5 * Arnaldo Carvalho de Melo <acme@conectiva.com.br>
6 *
7 * CCID infrastructure
8 *

--- 32 unchanged lines hidden (view full) ---

41 return false;
42 return true;
43}
44
45/**
46 * ccid_get_builtin_ccids - Populate a list of built-in CCIDs
47 * @ccid_array: pointer to copy into
48 * @array_len: value to return length into
49 *
49 * This function allocates memory - caller must see that it is freed after use.
50 */
51int ccid_get_builtin_ccids(u8 **ccid_array, u8 *array_len)
52{
53 *ccid_array = kmalloc(ARRAY_SIZE(ccids), gfp_any());
54 if (*ccid_array == NULL)
55 return -ENOBUFS;
56

--- 166 unchanged lines hidden ---
50 * This function allocates memory - caller must see that it is freed after use.
51 */
52int ccid_get_builtin_ccids(u8 **ccid_array, u8 *array_len)
53{
54 *ccid_array = kmalloc(ARRAY_SIZE(ccids), gfp_any());
55 if (*ccid_array == NULL)
56 return -ENOBUFS;
57

--- 166 unchanged lines hidden ---