This reverts commit 89b804f254.
As Dan points out, our backport is incorrect:
> This backport is weird. The creds stuff was supposed to protect
> target_init_dbroot(), but now it just changes the creds and then changes
> it back for no reason. It does call target_xcopy_release_pt() in the
> error handling. I don't see how that's related to the creds, so maybe
> that's a separate bug fix?
We don't have the target_init_dbroot() call there, so changing the creds
just to change them back immediately is useless. Revert this commit.
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>