Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d0c047c authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: char: msm_smd_pkt: Return error in case driver is not ready"

parents 655c6aa6 807e3fef
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
/* Copyright (c) 2019, The Linux Foundation. All rights reserved.
/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved.
 *
 *
 * This program is free software; you can redistribute it and/or modify
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -166,6 +166,9 @@ static int smd_pkt_rpdev_cb(struct rpmsg_device *rpdev, void *buf, int len,
	unsigned long flags;
	unsigned long flags;
	struct sk_buff *skb;
	struct sk_buff *skb;


	if (!smd_pkt_devp)
		return -EINVAL;

	skb = alloc_skb(len, GFP_ATOMIC);
	skb = alloc_skb(len, GFP_ATOMIC);


	if (!skb)
	if (!skb)