Bugfixes in ringbuffer-fd

Signed-off-by: Jithin Jose <jithin.jose@intel.com>