Pablo de Lara
8dbc9bbfe3
examples/l2fwd-crypto: fix possible out-of-bounds
...
rte_cryptodev_socket_id() returns the socket id of
a crypto device, unless the device id is not valid,
in which case, it returns -1.
This should not happen, as the device id is controlled
by the application, but just for safety, a check is added.
Coverity issue: 158628, 158638, 158656, 158662
Fixes: b3bbd9e5f265 ("cryptodev: support device independent sessions")
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2017-07-31 22:46:36 +02:00
..
2017-07-16 17:30:25 +02:00
2017-06-14 23:54:13 +02:00
2017-07-08 18:47:00 +02:00
2017-07-09 00:05:42 +02:00
2017-07-07 09:30:12 +02:00
2017-07-16 17:30:25 +02:00
2017-06-14 23:54:13 +02:00
2017-07-16 17:30:25 +02:00
2017-07-08 18:47:00 +02:00
2017-07-16 17:30:25 +02:00
2017-07-19 14:10:41 +03:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-08 18:47:00 +02:00
2017-07-31 22:46:36 +02:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-21 17:36:20 +03:00
2017-07-16 17:30:25 +02:00
2017-07-08 18:47:00 +02:00
2017-07-08 18:47:00 +02:00
2017-07-16 17:30:25 +02:00
2017-07-08 18:47:00 +02:00
2017-07-08 18:47:00 +02:00
2017-07-21 17:36:29 +03:00
2017-07-08 18:47:00 +02:00
2017-07-08 18:47:00 +02:00
2017-07-16 17:30:25 +02:00
2017-07-08 18:47:00 +02:00
2017-07-08 18:47:00 +02:00
2017-06-14 23:54:13 +02:00
2017-07-08 18:47:00 +02:00
2017-07-19 22:49:47 +03:00
2017-07-08 18:47:00 +02:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-16 17:30:25 +02:00
2017-07-19 22:49:47 +03:00