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

Commit eb63efb4 authored by Christophe Jaillet's avatar Christophe Jaillet Committed by David S. Miller
Browse files

ps3_gelic: fix memcpy parameter



The size allocated for target->hwinfo and the number of bytes copied in it
should be consistent.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 14437e3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1622,7 +1622,7 @@ static void gelic_wl_scan_complete_event(struct gelic_wl_info *wl)
			continue;

		/* copy hw scan info */
		memcpy(target->hwinfo, scan_info, scan_info->size);
		memcpy(target->hwinfo, scan_info, be16_to_cpu(scan_info->size));
		target->essid_len = strnlen(scan_info->essid,
					    sizeof(scan_info->essid));
		target->rate_len = 0;