RE: [PATCH v3] net: stmmac: fix maxmtu assignment to be within valid range

2017-01-06 Thread Kweh, Hock Leong
ORGUE ; Joachim Eastwood > ; Niklas Cassel ; Johan Hovold > ; Pavel Machek ; lars.pers...@axis.com; > netdev ; LKML > Subject: Re: [PATCH v3] net: stmmac: fix maxmtu assignment to be within valid > range > > On Sat, Jan 7, 2017 at 1:47 AM, Kweh, Hock Leong > wrote: >

Re: [PATCH v3] net: stmmac: fix maxmtu assignment to be within valid range

2017-01-06 Thread Andy Shevchenko
On Sat, Jan 7, 2017 at 1:47 AM, Kweh, Hock Leong wrote: >> > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c >> > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c >> > @@ -3345,8 +3345,14 @@ int stmmac_dvr_probe(struct device *device, >> > ndev->max_mtu = JUMBO_LEN;

RE: [PATCH v3] net: stmmac: fix maxmtu assignment to be within valid range

2017-01-06 Thread Kweh, Hock Leong
ORGUE ; Joachim Eastwood > ; Niklas Cassel ; Johan Hovold > ; Pavel Machek ; lars.pers...@axis.com; > netdev ; LKML > Subject: Re: [PATCH v3] net: stmmac: fix maxmtu assignment to be within valid > range > > On Sat, Jan 7, 2017 at 2:49 AM, Kweh, Hock Leong > wrote: > >

RE: [PATCH v3] net: stmmac: fix maxmtu assignment to be within valid range

2017-01-06 Thread Kweh, Hock Leong
exandre TORGUE ; Joachim Eastwood > ; Niklas Cassel ; Johan Hovold > ; pa...@ucw.cz; lars.pers...@axis.com; netdev > ; LKML > Subject: Re: [PATCH v3] net: stmmac: fix maxmtu assignment to be within valid > range > > > Hi Wilson, > > Às 12:49 AM de 1/7/2017,

Re: [PATCH v3] net: stmmac: fix maxmtu assignment to be within valid range

2017-01-06 Thread Andy Shevchenko
On Sat, Jan 7, 2017 at 2:49 AM, Kweh, Hock Leong wrote: > From: "Kweh, Hock Leong" > > There is no checking valid value of maxmtu when getting it from device tree. > This resolution added the checking condition to ensure the assignment is > made within a valid range. > --- a/drivers/net/ethernet

Re: [PATCH v3] net: stmmac: fix maxmtu assignment to be within valid range

2017-01-06 Thread Joao Pinto
Hi Wilson, Às 12:49 AM de 1/7/2017, Kweh, Hock Leong escreveu: > From: "Kweh, Hock Leong" > > There is no checking valid value of maxmtu when getting it from device tree. > This resolution added the checking condition to ensure the assignment is > made within a valid range. > > Signed-off-by: