Re: [PATCH] 9p bug fix: return non-zero error value in p9_put_data

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric Van Hensbergen <ericvh@...>
Cc: <v9fs-developer@...>, <linux-kernel@...>
Date: Thursday, August 28, 2008 - 2:35 pm

On Thu, 2008-08-28 at 11:10 -0700, Eric Van Hensbergen wrote:

Yes, this bug didn't come up to the surface since p9_create_twrite is
not even being called anywhere in v9fs. I tripped over it when using 9p
for a different module that I am working on. 

Yes, but then that makes the "check for error in return value" in
p9_create_twrite useless since memmove is not going to return an error
in any case.

Going with the existing convention however, I think the bufoverflow
check is unnecessary in p9_put_data and so is the check for error on
return.

I'll resubmit a patch.

 -- Abhishek



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] 9p bug fix: return non-zero error value in p9_put_data, Abhishek Kulkarni, (Tue Aug 26, 1:30 pm)
Re: [PATCH] 9p bug fix: return non-zero error value in p9_pu..., Eric Van Hensbergen, (Thu Aug 28, 2:10 pm)
Re: [PATCH] 9p bug fix: return non-zero error value in p9_pu..., Abhishek Kulkarni, (Thu Aug 28, 2:35 pm)
Re: [PATCH] 9p bug fix: return non-zero error value in p9_pu..., Eric Van Hensbergen, (Tue Sep 23, 4:33 pm)