]> git.baikalelectronics.ru Git - uboot.git/commit
imx-common: rdc-sema: correct return value
authorPeng Fan <peng.fan@nxp.com>
Fri, 21 Apr 2017 08:56:50 +0000 (16:56 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 18 May 2017 09:23:31 +0000 (11:23 +0200)
commit57e9537d73ff59ccf7f1895fa66357edd6378fe0
treea97e85124bc5752ae590905882f21440743d2ac4
parentceba9bf1b2d43038c5907e074892baf2e061686f
imx-common: rdc-sema: correct return value

When unlock, if caller is not the sema owner,
return -EACCES, not 1.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
arch/arm/imx-common/rdc-sema.c