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

Commit eaa33a9a authored by vignesh's avatar vignesh Committed by Steve French
Browse files

[CIFS] Replace kmalloc/memset combination with kzalloc

parent 5858ae44
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -432,14 +432,11 @@ static int initiate_cifs_search(const int xid, struct file *file)

	if(file->private_data == NULL) {
		file->private_data = 
			kmalloc(sizeof(struct cifsFileInfo),GFP_KERNEL);
			kzalloc(sizeof(struct cifsFileInfo),GFP_KERNEL);
	}

	if(file->private_data == NULL) {
	if(file->private_data == NULL)
		return -ENOMEM;
	} else {
		memset(file->private_data,0,sizeof(struct cifsFileInfo));
	}
	cifsFile = file->private_data;
	cifsFile->invalidHandle = TRUE;
	cifsFile->srch_inf.endOfSearch = FALSE;