[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4BFB7378.6070900@wytron.com.tw>
Date: Tue, 25 May 2010 14:51:36 +0800
From: Thomas Chou <thomas@...ron.com.tw>
To: nios2-dev@...c.et.ntust.edu.tw
CC: netdev@...r.kernel.org, thierry.reding@...onic-design.de,
linux-kernel@...r.kernel.org, Dan Carpenter <error27@...il.com>
Subject: Re: [Nios2-dev] [PATCH] ethoc: fix null dereference in ethoc_probe
Tobias Klauser wrote:
>> @@ -944,6 +946,7 @@ static int ethoc_probe(struct platform_device *pdev)
>> priv = netdev_priv(netdev);
>> priv->netdev = netdev;
>> priv->dma_alloc = 0;
>> + priv->io_region_size = mmio->end - mmio->start + 1;
>
> Better use the resource_size inline here.
Hi Tobias,
I just see your patch of resource_size from the git log. Sorry, I missed
this one. I will send update on this. Thank you.
Cheers,
Thomas
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists