From: Yann Droneaud Date: Wed, 11 Dec 2013 22:01:50 +0000 (+0100) Subject: IB/uverbs: Set error code when fail to consume all flow_spec items X-Git-Tag: v3.13-rc6~12^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98a37510ec1452817600d8ea47cff1d9f8d9bec8;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed