summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a88db01)
... gentler than a warning and a crash.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
return -EPERM;
/* Check that the subbuffer size is larger than a page. */
return -EPERM;
/* Check that the subbuffer size is larger than a page. */
- CHAN_WARN_ON(chanb, subbuf_size < PAGE_SIZE);
+ if (subbuf_size < PAGE_SIZE)
+ return -EINVAL;
/*
* Make sure the number of subbuffers and subbuffer size are power of 2.
/*
* Make sure the number of subbuffers and subbuffer size are power of 2.