[PATCH RFC 013/111] staging: etnaviv: fix ring buffer overflow check