From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Gunthorpe Subject: Re: [PATCH 1/4] IB/hfi1: Restore EPROM read ability Date: Mon, 26 Sep 2016 10:52:47 -0600 Message-ID: <20160926165247.GB12011@obsidianresearch.com> References: <20160925144724.13602.38549.stgit@scvm10.sc.intel.com> <20160925144926.13602.47716.stgit@scvm10.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20160925144926.13602.47716.stgit-9QXIwq+3FY+1XWohqUldA0EOCMrvLtNR@public.gmane.org> Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Dennis Dalessandro Cc: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Easwar Hariharan , Dean Luick List-Id: linux-rdma@vger.kernel.org On Sun, Sep 25, 2016 at 07:49:29AM -0700, Dennis Dalessandro wrote: > + for (offset = 0; offset < len; offset += EP_PAGE_SIZE) { > + read_page(dd, start + offset, buffer); > + if (copy_to_user((void __user *)(addr + offset), If it is not being used by userpsace then do not call copy_to_user... Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html