video/rockchip: rga: Fixup erroneous judgment conditions for scale limit

Change-Id: I9d61e4851d38f8e029ed14ee05699d5dc8b4531e
Signed-off-by: Putin Lee <putin.li@rock-chips.com>
This commit is contained in:
Putin Lee
2018-08-02 20:22:48 +08:00
committed by Tao Huang
parent 0de0bdec81
commit ca1e3ee69e

View File

@@ -959,7 +959,7 @@ static int rga_blit(rga_session *session, struct rga_req *req)
goto err_put_dma_buf;
}
if (((daw >> 3) >= saw) || ((dah >> 3) >= daw)) {
if (((daw >> 3) >= saw) || ((dah >> 3) >= sah)) {
pr_err("unsupported to scaling more than 8 \n");
goto err_put_dma_buf;
}