]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r328329:
authorhselasky <hselasky@FreeBSD.org>
Thu, 1 Feb 2018 13:04:01 +0000 (13:04 +0000)
committerhselasky <hselasky@FreeBSD.org>
Thu, 1 Feb 2018 13:04:01 +0000 (13:04 +0000)
commitff0a31c598054dce59eb3248ca60a7229d17aea2
tree9e3f98ca220c0a0a6240bf4a9f33f2e9eec4b33f
parentec5bc284ae28293f357f1f65a841bf8f0ce23637
MFC r328329:
Properly implement the "id" callback argument in the "idr_for_each" function
in the LinuxKPI. The old implementation assumed only one IDR layer was present.
Take additional IDR layers into account when computing the "id" value.

Found by: Karthik Palanichamy <karthikp@chelsio.com>
Tested by: Karthik Palanichamy <karthikp@chelsio.com>
Sponsored by: Mellanox Technologies
sys/compat/linuxkpi/common/src/linux_idr.c