This check is performed at mapping setup time in
lib_ring_buffer_mmap_buf() already, so we can safely remove this
duplicata.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
void **virt;
unsigned long offset, sb_bindex;
void **virt;
unsigned long offset, sb_bindex;
- if (!buf)
- return VM_FAULT_OOM;
-
/*
* Verify that faults are only done on the range of pages owned by the
* reader.
/*
* Verify that faults are only done on the range of pages owned by the
* reader.