RE: NULL Pointer Deference: NFS & Telnet

Arce, Abraham
2010-09-08T23:27:20Z

Thanks Eric,

> Le mardi 07 septembre 2010 à 16:43 -0500, Arce, Abraham a écrit :
> > > From: Eric Dumazet [mailto:eric.dumazet@gmail.com]

[..]

> > How about the following patch? I am using added helper function:
> > netdev_alloc_skb_ip_align()
>
> Hmm, I prefer following patch (not tested), to really cope with
> allocation errors (instead of crashing because of NULL dereference), and
> allocate and skb of exactly the needed size.

Patch tested, 2 minor modifications:

- Added an ending brace
- Line size correction

It has been tested in a SDP OMAP4 ES1.0

- Filesystem over nfs
- Multiple file creation
- Throughput measurement

I'll send it as a new patch

[PATCH] KS8851: Correct RX packet allocation

Best Regards
Abraham