lkml.org 
[lkml]   [2010]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] dma-debug: off by one issue
On Mon, Apr 05, 2010 at 03:53:30PM +0300, Dan Carpenter wrote:
> On Sat, Apr 03, 2010 at 10:47:17PM +0200, Joerg Roedel wrote:

> > The character is already reserved by the user-to-kernel copy earlier in
> > the function.
>
> Yes, but the original code requires more code reading to audit. Let's
> change the commit message to say that it's a clean up patch.

In this case its better to remove the

current_driver_name[i] = 0;

line just after the loop.

Joerg



\
 
 \ /
  Last update: 2010-04-05 16:05    [W:0.057 / U:23.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site