From: Boram Park Date: Sun, 25 Feb 2018 23:30:24 +0000 (+0900) Subject: vblank: offset should be greater than 0 X-Git-Tag: submit/tizen/20180227.014049~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45a49594922e43688725291a2812bc85d8eacf1d;p=platform%2Fcore%2Fuifw%2Flibtdm.git vblank: offset should be greater than 0 Change-Id: Iee03c0b17b51f8a35c844b5d4f6581ada167d8eb --- diff --git a/src/tdm_vblank.c b/src/tdm_vblank.c index 0362d4ee..bdcad07a 100644 --- a/src/tdm_vblank.c +++ b/src/tdm_vblank.c @@ -980,6 +980,7 @@ tdm_vblank_set_offset(tdm_vblank *vblank, int offset) tdm_private_vblank *private_vblank = vblank; TDM_RETURN_VAL_IF_FAIL(tdm_vblank_is_valid(vblank), TDM_ERROR_INVALID_PARAMETER); + TDM_RETURN_VAL_IF_FAIL(offset >= 0, TDM_ERROR_INVALID_PARAMETER); if (private_vblank->offset == offset) return TDM_ERROR_NONE;