projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
[linux-2.6-microblaze.git]
/
net
/
qrtr
/
qrtr.c
diff --git
a/net/qrtr/qrtr.c
b/net/qrtr/qrtr.c
index
6c61b7b
..
b8508e3
100644
(file)
--- a/
net/qrtr/qrtr.c
+++ b/
net/qrtr/qrtr.c
@@
-493,7
+493,7
@@
int qrtr_endpoint_post(struct qrtr_endpoint *ep, const void *data, size_t len)
goto err;
}
- if (len != ALIGN(size, 4) + hdrlen)
+ if (
!size ||
len != ALIGN(size, 4) + hdrlen)
goto err;
if (cb->dst_port != QRTR_PORT_CTRL && cb->type != QRTR_TYPE_DATA &&