Yann Droneaud 98a37510ec IB/uverbs: Set error code when fail to consume all flow_spec items
If the flow_spec items parsed count does not match the number of items
declared in the flow_attr command, or if not all bytes are used for
flow_spec items (eg. trailing garbage), a log message is reported and
the function leave through the error path. Unfortunately the error
code is currently not set.

This patch set error code to -EINVAL in such cases, so that the error
is reported to userspace instead of silently fail.

Link: http://marc.info/?i=cover.1386798254.git.ydroneaud@opteya.com>
Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2013-12-20 10:54:33 -08:00
..
2013-11-27 01:03:27 +01:00
2013-12-06 08:30:18 -08:00
2013-11-19 15:53:02 -05:00
2013-10-29 12:53:07 +02:00
2013-11-07 19:24:20 +01:00
2013-11-27 01:03:27 +01:00
2013-11-15 14:05:15 -08:00
2013-10-24 16:18:40 +01:00
2013-11-18 15:35:09 -08:00
2013-12-06 08:30:18 -08:00
2013-12-02 10:12:01 -08:00