projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branches 'timers-core-for-linus' and 'timers-urgent-for-linus' of git://git...
[cascardo/linux.git]
/
drivers
/
net
/
ethernet
/
chelsio
/
cxgb4
/
clip_tbl.c
diff --git
a/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c
b/drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c
index
c308429
..
11dd91e
100644
(file)
--- a/
drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c
+++ b/
drivers/net/ethernet/chelsio/cxgb4/clip_tbl.c
@@
-295,6
+295,10
@@
struct clip_tbl *t4_init_clip_tbl(unsigned int clipt_start,
INIT_LIST_HEAD(&ctbl->hash_list[i]);
cl_list = t4_alloc_mem(clipt_size*sizeof(struct clip_entry));
+ if (!cl_list) {
+ t4_free_mem(ctbl);
+ return NULL;
+ }
ctbl->cl_list = (void *)cl_list;
for (i = 0; i < clipt_size; i++) {