]> git.baikalelectronics.ru Git - kernel.git/commit
lib/uuid.c: use correct offset in uuid parser
authorBjørn Mork <bjorn@mork.no>
Mon, 30 May 2016 14:40:42 +0000 (17:40 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 30 May 2016 22:26:57 +0000 (15:26 -0700)
commit9d2c15739d3a8426d3f916b3e3ab70c218382b60
tree4ab99d51ed39952bbd7500dca2abd2b7831184a5
parenta68a99790e8def27b14b0f08f1930660d1ae0439
lib/uuid.c: use correct offset in uuid parser

Use '+ 0' and '+ 1' as offsets, like they were intended, instead of
adding to the result.

Fixes: 5de37e7d5e81 ("lib/uuid.c: introduce a few more generic helpers")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/uuid.c