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

Commit 81f58c67 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: omninet: use kzalloc for private data



Make sure the port private data, which contains the write sequence
number, is cleared at allocation.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2bef64b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ static int omninet_port_probe(struct usb_serial_port *port)
{
	struct omninet_data *od;

	od = kmalloc(sizeof(struct omninet_data), GFP_KERNEL);
	od = kzalloc(sizeof(*od), GFP_KERNEL);
	if (!od)
		return -ENOMEM;