]> git.baikalelectronics.ru Git - kernel.git/commit
HSI: omap_ssi: fix handling ida_simple_get result
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 21 Sep 2015 13:33:43 +0000 (15:33 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 7 Jan 2016 15:06:22 +0000 (16:06 +0100)
commit01427ee43d3c532198cfd8ccef5077fe2e81f4e4
treefb6e5de8a0a0826ea2ec8743d899d03e8cfd6137
parent2d215c5ae64c6e53a0a78f5481d912f9ac22a6b3
HSI: omap_ssi: fix handling ida_simple_get result

The function can return negative value.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2038576

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/hsi/controllers/omap_ssi.c