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

Commit 27681b2b authored by Paul Lawrence's avatar Paul Lawrence Committed by Blagovest Kolenichev
Browse files

ANDROID: Incremental fs: Fix two typos



Test: incfs_test passes
Bug: 151240628
Signed-off-by: default avatarPaul Lawrence <paullawrence@google.com>
Change-Id: I627e683b562329fd57aedc8393e22449ff09ee1f
(cherry picked from commit 06c715e275dc65e720759cfeacb4120289e2a306)
Git-commit: f2e257e6
Git-repo: https://android.googlesource.com/kernel/common/


Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent e2e83109
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -796,7 +796,7 @@ static int process_file_signature_md(struct incfs_file_signature *sg,
	int error = 0;
	int error = 0;
	struct incfs_df_signature *signature =
	struct incfs_df_signature *signature =
		kzalloc(sizeof(*signature), GFP_NOFS);
		kzalloc(sizeof(*signature), GFP_NOFS);
	void *buf = 0;
	void *buf = NULL;
	ssize_t read;
	ssize_t read;


	if (!df || !df->df_backing_file_context ||
	if (!df || !df->df_backing_file_context ||
+1 −1
Original line number Original line Diff line number Diff line
@@ -57,7 +57,7 @@ struct signature_info {
	struct mem_range root_hash;
	struct mem_range root_hash;
};
};


static u32 read_u32(u8 **p, u8 *top, u32 *result)
static bool read_u32(u8 **p, u8 *top, u32 *result)
{
{
	if (*p + sizeof(u32) > top)
	if (*p + sizeof(u32) > top)
		return false;
		return false;