Re: sysfs_ops show vector: size of buffer not required?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 26, 2010 at 07:29:24AM -0800, Greg KH wrote:
> On Tue, Jan 26, 2010 at 12:01:27PM +0530, Himanshu Chauhan wrote:
> > On Mon, Jan 25, 2010 at 08:36:46PM -0800, Greg KH wrote:
> > > On Sun, Jan 24, 2010 at 01:11:18PM +0530, Himanshu Chauhan wrote:
> > > > Hi All,
> > > > 
> > > > The sysfs_ops's show vector doesn't have a size of the
> > > > buffer given to the vector, while store on the other hand
> > > > has. What is the rationale behind it?
> > > 
> > > If you need to check the size, you are doing something wrong.
> > > 
> > > Seriously, that is the reason.  A sysfs file should be a single value,
> > > which will never overflow the buffer.
> > > 
> > I was talking in context of usb/ip's show_status. It writes a lot of data
> > into this buffer.
> 
> Then it needs to be fixed.  Again, it must be, one value per file, that
> is the sysfs rule.
> 
> > Which seems to over flow the buffer. But anyways, I will check if it
> > can be reduced or at least be splitted into differnt device
> > attributes.
> 
> That would be great.

Okay, I will do that.

> 
> > BTW, Greg, Did you take a look at other patches I had sent? Are are worth or
> > I need rework?
> 
> They are in my "to-apply" queue that I will be flushing out in the next
> few days.

Thanks Greg.

Regards
Himanshu

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux