[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200910122350.2c49ce88@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com>
Date: Thu, 10 Sep 2020 12:23:50 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Andrew Lunn <andrew@...n.ch>
Cc: David Miller <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>, Chris Healy <cphealy@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Jiri Pirko <jiri@...dia.com>,
Vladimir Oltean <olteanv@...il.com>
Subject: Re: [PATCH v3 net-next 7/9] net: dsa: mv88e6xxx: Add devlink
regions
On Thu, 10 Sep 2020 01:58:25 +0200 Andrew Lunn wrote:
> + table = kmalloc_array(mv88e6xxx_num_databases(chip),
> + sizeof(struct mv88e6xxx_devlink_atu_entry),
> + GFP_KERNEL);
> + if (!table)
> + return -ENOMEM;
> +
> + memset(table, 0, mv88e6xxx_num_databases(chip) *
> + sizeof(struct mv88e6xxx_devlink_atu_entry));
kcalloc()
Powered by blists - more mailing lists