From 9a8cca9f6c2558b7eb249fa86b7c42eb790a09df Mon Sep 17 00:00:00 2001 From: Benjamin Romer Date: Mon, 18 Aug 2014 09:34:52 -0400 Subject: [PATCH] staging: unisys: fix spacing in parser.c Fix the two spacing errors in parser.c. Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- drivers/staging/unisys/visorchipset/parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/staging/unisys/visorchipset/parser.c b/drivers/staging/unisys/visorchipset/parser.c index 86fa2949dc4e..661aaae9b154 100644 --- a/drivers/staging/unisys/visorchipset/parser.c +++ b/drivers/staging/unisys/visorchipset/parser.c @@ -84,6 +84,7 @@ parser_init_guts(u64 addr, u32 bytes, BOOL isLocal, ctx->byte_stream = FALSE; if (isLocal) { void *p; + if (addr > virt_to_phys(high_memory - 1)) { ERRDRV("%s - bad local address (0x%-16.16Lx for %lu)", __func__, @@ -257,6 +258,7 @@ static int string_length_no_trail(char *s, int len) { int i = len - 1; + while (i >= 0) { if (!isspace(s[i])) return i + 1; -- 2.30.2