ravb: fix ring memory allocation