|
@@ -605,7 +605,7 @@ static int ocelot_mact_mc_add(struct ocelot_port *port,
|
|
|
struct netdev_hw_addr *hw_addr)
|
|
struct netdev_hw_addr *hw_addr)
|
|
|
{
|
|
{
|
|
|
struct ocelot *ocelot = port->ocelot;
|
|
struct ocelot *ocelot = port->ocelot;
|
|
|
- struct netdev_hw_addr *ha = kzalloc(sizeof(*ha), GFP_KERNEL);
|
|
|
|
|
|
|
+ struct netdev_hw_addr *ha = kzalloc(sizeof(*ha), GFP_ATOMIC);
|
|
|
|
|
|
|
|
if (!ha)
|
|
if (!ha)
|
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|