projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'xen/dev-evtchn' into upstream/evtchn
[cascardo/linux.git]
/
drivers
/
uwb
/
allocator.c
diff --git
a/drivers/uwb/allocator.c
b/drivers/uwb/allocator.c
index
436e4f7
..
e45e673
100644
(file)
--- a/
drivers/uwb/allocator.c
+++ b/
drivers/uwb/allocator.c
@@
-326,7
+326,8
@@
int uwb_rsv_find_best_allocation(struct uwb_rsv *rsv, struct uwb_mas_bm *availab
int bit_index;
ai = kzalloc(sizeof(struct uwb_rsv_alloc_info), GFP_KERNEL);
-
+ if (!ai)
+ return UWB_RSV_ALLOC_NOT_FOUND;
ai->min_mas = rsv->min_mas;
ai->max_mas = rsv->max_mas;
ai->max_interval = rsv->max_interval;