Skip to content

Commit 18d3166

Browse files
RealJohnGaltonettboots
authored andcommitted
goodix/gf_spi: use DMA for skbuff
[pwnrazr: original commit yaap/kernel_oneplus_sm8150@767ea38] Signed-off-by: onettboots <blackcocopet@gmail.com>
1 parent f22ee09 commit 18d3166

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/input/fingerprint/goodix_ta

drivers/input/fingerprint/goodix_ta/gf_spi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ static struct gf_dev {
3838
static struct sock *nl_sk = NULL;
3939
static int pid = -1;
4040
static inline int sendnlmsg(void) {
41-
struct sk_buff *skb_1 = alloc_skb(NLMSG_SPACE(MAX_MSGSIZE), GFP_KERNEL);
41+
struct sk_buff *skb_1 = alloc_skb(NLMSG_SPACE(MAX_MSGSIZE), GFP_KERNEL | GFP_DMA);
4242
struct nlmsghdr *nlh = nlmsg_put(skb_1, 0, 0, 0, MAX_MSGSIZE, 0);
4343
char msg[MAX_MSGSIZE] = { 1, 0 };
4444
memcpy(NLMSG_DATA(nlh), msg, MAX_MSGSIZE);
4545
NETLINK_CB(skb_1).portid = NETLINK_CB(skb_1).dst_group = 0;
46-
netlink_unicast(nl_sk, skb_1, pid, MSG_DONTWAIT);
46+
netlink_unicast(nl_sk, skb_1, pid, MSG_DONTWAIT + MSG_NOSIGNAL);
4747
return 1;
4848
}
4949

0 commit comments

Comments
 (0)