Peter Maydell
501bb4b0cb
linux-user: Fix error handling in lock_iovec()
...
In lock_iovec() if lock_user() failed we were doing an unlock_user
but not a free(vec), which is the wrong way round. We were also
assuming that free() and unlock_user() don't touch errno, which
is not guaranteed. Fix both these problems.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2014-02-18 16:54:06 +02:00
..
2014-01-08 19:07:20 +00:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2014-02-18 16:45:55 +02:00
2013-11-29 11:42:04 +02:00
2014-02-18 16:45:55 +02:00
2013-09-10 19:11:28 +01:00
2010-02-06 17:19:43 +01:00
2014-02-18 16:54:06 +02:00
2008-12-13 09:32:43 +00:00
2007-10-14 16:27:31 +00:00
2014-01-10 08:51:37 +02:00
2013-09-24 10:47:07 +03:00
2008-05-23 16:06:43 +00:00
2014-01-10 08:51:37 +02:00
2010-10-05 13:53:56 -05:00
2014-01-08 19:07:20 +00:00
2012-06-07 07:17:33 +02:00
2013-07-22 21:54:52 +03:00
2014-01-10 08:51:37 +02:00
2014-02-18 16:54:06 +02:00
2013-07-05 15:45:40 +03:00
2013-04-05 14:40:54 +02:00
2013-09-24 10:47:07 +03:00
2014-01-10 08:51:36 +02:00
2012-08-13 12:45:46 +01:00
2014-02-18 16:54:06 +02:00
2011-02-09 10:33:54 +02:00
2009-07-01 18:24:44 +00:00
2011-10-27 14:42:16 +03:00