Re: [PATCH 1/4] IB/uverbs: ex_query_device: fail if output buffer size does not match

2015-01-26 Thread Yann Droneaud
Hi, Le dimanche 25 janvier 2015 à 17:29 +0200, Haggai Eran a écrit : > On 22/01/2015 15:28, Yann Droneaud wrote: > > Instead of silently truncating extended QUERY_DEVICE uverb's > > response, see commit 5a77abf9a97a ("IB/core: Add support for > > extended query device caps")), this patch makes fun

Re: [PATCH 1/4] IB/uverbs: ex_query_device: fail if output buffer size does not match

2015-01-25 Thread Haggai Eran
On 22/01/2015 15:28, Yann Droneaud wrote: > Instead of silently truncating extended QUERY_DEVICE uverb's > response, see commit 5a77abf9a97a ("IB/core: Add support for > extended query device caps")), this patch makes function > ib_uverbs_ex_query_device() check the available space in the > respons

[PATCH 1/4] IB/uverbs: ex_query_device: fail if output buffer size does not match

2015-01-22 Thread Yann Droneaud
Instead of silently truncating extended QUERY_DEVICE uverb's response, see commit 5a77abf9a97a ("IB/core: Add support for extended query device caps")), this patch makes function ib_uverbs_ex_query_device() check the available space in the response buffer against the requested features set in comp_