diff options
author | Taehee Yoo <ap420073@gmail.com> | 2020-03-04 23:25:43 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-05 11:47:10 -0800 |
commit | 9c9cc918152e5775a60442171ef32235f17e1d72 (patch) | |
tree | 3418cb6dc4ae5ae731c907e0397b9a57d42d23a2 /drivers/net/ethernet/qualcomm/rmnet | |
parent | fcf8f4eb81fb266f56505e821591070becc9eeb0 (diff) | |
download | linux-stable-9c9cc918152e5775a60442171ef32235f17e1d72.tar.gz linux-stable-9c9cc918152e5775a60442171ef32235f17e1d72.tar.bz2 linux-stable-9c9cc918152e5775a60442171ef32235f17e1d72.zip |
net: rmnet: use GFP_KERNEL instead of GFP_ATOMIC
In the current code, rmnet_register_real_device() and rmnet_newlink()
are using GFP_ATOMIC.
But, these functions are allowed to sleep.
So, GFP_KERNEL can be used.
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qualcomm/rmnet')
-rw-r--r-- | drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c index 63d0c2017ee5..1305522f72d6 100644 --- a/drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c +++ b/drivers/net/ethernet/qualcomm/rmnet/rmnet_config.c @@ -57,7 +57,7 @@ static int rmnet_register_real_device(struct net_device *real_dev) if (rmnet_is_real_dev_registered(real_dev)) return 0; - port = kzalloc(sizeof(*port), GFP_ATOMIC); + port = kzalloc(sizeof(*port), GFP_KERNEL); if (!port) return -ENOMEM; @@ -127,7 +127,7 @@ static int rmnet_newlink(struct net *src_net, struct net_device *dev, return -ENODEV; } - ep = kzalloc(sizeof(*ep), GFP_ATOMIC); + ep = kzalloc(sizeof(*ep), GFP_KERNEL); if (!ep) return -ENOMEM; |