Hey - first of all, sorry for the long delay on responding to this,
I've just gotten back to my patch queue.
On Tue, Sep 2, 2008 at 2:04 PM, Abhishek Kulkarni <kulkarni@lanl.gov> wrote:
Please include the original description when resubmitting patches --
this will allow me to suck it into my tree more effectively.
What happens if buf_alloc returns NULL?
Isn't the right behavior something more along the lines of:
static int
p9_put_data(struct cbuf *bufp, const char *data, int count,
unsigned char **pdata)
{
*pdata = buf_alloc(bufp, count);'
if(*pdata)
memmove(*pdata, data, count);
return 0;
else
return ENOMEM;
}
-eric
--