]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: clarify overflow/underflow checks on ib_create/destroy_flow
authorMatan Barak <matanb@mellanox.com>
Wed, 6 Nov 2013 22:21:44 +0000 (23:21 +0100)
committerRoland Dreier <roland@purestorage.com>
Sun, 17 Nov 2013 16:22:07 +0000 (08:22 -0800)
commit0467be31f88dd4a6b0c6498ee03c30f53d7cc735
tree7e37bc3c5e28ff5ecc52a2a203245ba17609cac6
parent0e7fb4bc05a12a48fc03da20d018ff3786b7d5dc
IB/core: clarify overflow/underflow checks on ib_create/destroy_flow

This patch fixes the following issues:

1. Unneeded checks were removed

2. Removed the fixed size out of flow_attr.size, thus simplifying the checks.

3. Remove a 32bit hole on 64bit systems with strict alignment in
   struct ib_kern_flow_att by adding a reserved field.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/uverbs_cmd.c
include/uapi/rdma/ib_user_verbs.h