lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080428151604.GB7334@c2.user-mode-linux.org>
Date:	Mon, 28 Apr 2008 11:16:04 -0400
From:	Jeff Dike <jdike@...toit.com>
To:	WANG Cong <xiyou.wangcong@...il.com>
Cc:	akpm@...l.org, linux-kernel@...r.kernel.org,
	user-mode-linux-devel@...ts.sourceforge.net
Subject: Re: [PATCH 6/19] UML - hppfs fixes

On Sat, Apr 26, 2008 at 04:31:32PM +0800, WANG Cong wrote:
> > -		copy_to_user(buf, &data->contents[off], count);
> > -		*ppos += count;
> > +		rem = copy_to_user(buf, &data->contents[off], count);
> > +		*ppos += count - rem;
> > +		if (rem > 0)
> > +			return -EFAULT;
> 
> 
> Could you please explain why check 'rem' after using it here?

Because I'm an idiot.  Will fix.

> >  static int hppfs_open(struct inode *inode, struct file *file)
> >  {
> >  	struct hppfs_private *data;
> > -	struct dentry *proc_dentry;
> >  	struct vfsmount *proc_mnt;
> > +	struct dentry *proc_dentry;
> 
> And what does this kind of change mean?

It means I culdn't make up my mind.  I first got rid of the dentrys,
then put them back, but in a different place.

     	      	    Jeff

-- 
Work email - jdike at linux dot intel dot com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ