[openib-general] zero-sized memory regions

Michael S. Tsirkin mst at mellanox.co.il
Sun Mar 27 07:41:34 PST 2005


Hi!
Currently an attempt to create a zero sized
memory region in mthca succeeds, but apparently
the key field in the region returned is uninitialized.
Further, buffer_list passed in must have length of at least 1
which is somewhat counterintuitive.

Should not the operation rather return -EINVAL, and avoid
accessing the buffer list at all?
Roland - want a patch like this?


-- 
MST - Michael S. Tsirkin



More information about the general mailing list