From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Cotte-Barrot Date: Fri, 15 Nov 2002 13:51:36 +0000 Subject: Re: [Linux-ia64] Re: memcpy failure Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Matthew Wilcox wrote: > > On Fri, Nov 15, 2002 at 11:32:10AM +0100, Christian Cotte-Barrot wrote: > > On bad return from memcpy the concerned device driver loggs warning > > in /var/log/messages and the system administrator may have some doubt > > about the good working of the device. > > _what_ bad return from memcpy?! memcpy returns the pointer that was > passed to it. What are you going to check for? > Simply, bad return is whatever is not equal to the dest pointer: if ((memcpy(rptr, ch->rxptr + tail, dataToRead)) != rptr) ...