[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120922131445.611d794d@nehalam.linuxnetplumber.net>
Date: Sat, 22 Sep 2012 13:14:45 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: Jiri Pirko <jiri@...nulli.us>
Cc: netdev@...r.kernel.org, davem@...emloft.net, mlindner@...vell.com,
linux-kernel@...r.kernel.org
Subject: Re: [patch net] sky2: fix rx filter setup on link up
On Mon, 17 Sep 2012 17:10:17 +0200
Jiri Pirko <jiri@...nulli.us> wrote:
> + sky2_write_rx_filter(sky2, filter);
> + memcpy(sky2->rx_filter, filter, sizeof(sky2->rx_filter));
This isn't safe since rx_filter might be referred to from interrupt
context (ie link up PHY interrupt). Maybe using atomic64 would be
best.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists