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

Commit a41d9a91 authored by Andrei Epure's avatar Andrei Epure Committed by Kalle Valo
Browse files

ath: changed kmalloc to kmemdup

parent 6a3e4e06
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -856,11 +856,9 @@ static int ath6kl_usb_submit_ctrl_out(struct ath6kl_usb *ar_usb,
	int ret;

	if (size > 0) {
		buf = kmalloc(size, GFP_KERNEL);
		buf = kmemdup(data, size, GFP_KERNEL);
		if (buf == NULL)
			return -ENOMEM;

		memcpy(buf, data, size);
	}

	/* note: if successful returns number of bytes transfered */