Infiniband coding mistake fixed.
PATCH 1/1 Infiniband coding mistake fixed.
hello,
The last parameter of get_user_pages should be a array of pointers to vmas corresponding to each page. Through this coding mistake can not cause some problem now, it is a potential time bomb.
Signed-off-by Yang Honggang <[email protected]>
--- drivers/infiniband/hw/qib/qib_user_pages.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/qib/qib_user_pages.c +1 -1
@@ -69,7 +69,7 @@ static int __qib_get_user_pages(unsigned long start_page, size_t num_pages, ret =get_user_pages (current, current->mm, start_page + got *PAGE_SIZE , num_pages - got,1 ,1 , - p + got, vma); + p + got, vma + got);if (ret <0 ) goto bail_release; }
Signature · 6 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html