]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
s390/ctcm: Use GFP_KERNEL in add_channel().
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 30 Nov 2020 10:09:49 +0000 (11:09 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 2 Dec 2020 00:56:02 +0000 (16:56 -0800)
commit04e4e469f99ae117080135d5069767f3c2455191
tree77c4fadc0003455aa974f0e57f086500a06aa746
parent8dc4b6af0838cbad8e045a410667e7009bbc7c67
s390/ctcm: Use GFP_KERNEL in add_channel().

gfp_type() uses in_interrupt() to figure out the correct GFP mask.

The usage of in_interrupt() in drivers is phased out and Linus clearly
requested that code which changes behaviour depending on context should
either be separated or the context be conveyed in an argument passed by the
caller, which usually knows the context.

The memory allocation of `ch' a few lines above is using GFP_KERNEL,
also an allocation a few lines later is using GFP_KERNEL.

Use GFP_KERNEL for the memory allocation.

Reviewed-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/s390/net/ctcm_main.c