diff options
author | Vipin Kumar <vipin.kumar@st.com> | 2012-07-02 09:58:47 +0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-07-06 21:27:48 +0400 |
commit | 2c99b8bfb22342ab0c06e07ee54fa0d5e638e52a (patch) | |
tree | 63ae3cdccac97eb94433be9b865b297da3d55fba /drivers/misc | |
parent | 4dc48c37d1ce968b5ade7d1646927199ee536129 (diff) | |
download | linux-2c99b8bfb22342ab0c06e07ee54fa0d5e638e52a.tar.xz |
mtd: spear_smi: handle return value of timeouts properly
Handle timouts in general and return value of
'wait_event_interruptible_timeout' in particular, to capture all
conditions.
'wait_event_interruptible_timeout' returns either of the following three
values :-
* 0 - time out occurred.
* negative
* -ERESTARTSYS - return because of a signal
* other - for a real error
* positive - time remaining
Fix particularly 'ERESTARTSYS' condition which is not properly handled
by the smi driver at a couple of places leading to an erroneous
situation.
Signed-off-by: Antonio BORNEO <antonio.borneo@st.com>
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions