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

Commit d455b72b authored by Dia Vasile's avatar Dia Vasile Committed by Steve French
Browse files

cifs: replaced kmalloc + memset with kzalloc

parent 73a999fa
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -846,12 +846,10 @@ create_lease_buf(u8 *lease_key, u8 oplock)
{
	struct create_lease *buf;

	buf = kmalloc(sizeof(struct create_lease), GFP_KERNEL);
	buf = kzalloc(sizeof(struct create_lease), GFP_KERNEL);
	if (!buf)
		return NULL;

	memset(buf, 0, sizeof(struct create_lease));

	buf->lcontext.LeaseKeyLow = cpu_to_le64(*((u64 *)lease_key));
	buf->lcontext.LeaseKeyHigh = cpu_to_le64(*((u64 *)(lease_key + 8)));
	if (oplock == SMB2_OPLOCK_LEVEL_EXCLUSIVE)