Skip to content

Commit

Permalink
lib/ubsan.c: s/missaligned/misaligned/
Browse files Browse the repository at this point in the history
A vist from the spelling fairy.

Cc: David Laight <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
akpm00 authored and torvalds committed Feb 7, 2018
1 parent 32b395a commit b8fe112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ubsan.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static void handle_null_ptr_deref(struct type_mismatch_data *data)
ubsan_epilogue(&flags);
}

static void handle_missaligned_access(struct type_mismatch_data *data,
static void handle_misaligned_access(struct type_mismatch_data *data,
unsigned long ptr)
{
unsigned long flags;
Expand Down Expand Up @@ -322,7 +322,7 @@ void __ubsan_handle_type_mismatch(struct type_mismatch_data *data,
if (!ptr)
handle_null_ptr_deref(data);
else if (data->alignment && !IS_ALIGNED(ptr, data->alignment))
handle_missaligned_access(data, ptr);
handle_misaligned_access(data, ptr);
else
handle_object_size_mismatch(data, ptr);
}
Expand Down

0 comments on commit b8fe112

Please sign in to comment.