2f14656fe1
commit 32ad11127b95236dfc52375f3707853194a7f4b4 upstream.
This code tries to store -EFAULT in an unsigned int. The
xenbus_file_read() function returns type ssize_t so the negative value
is returned as a positive value to the user.
This change forces another change to the min() macro. Originally, the
min() macro used "unsigned" type which checkpatch complains about. Also
unsigned type would break if "len" were not capped at MAX_RW_COUNT. Use
size_t for the min(). (No effect on runtime for the min_t() change).
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
xenbus_client.c | ||
xenbus_comms.c | ||
xenbus_dev_backend.c | ||
xenbus_dev_frontend.c | ||
xenbus_probe_backend.c | ||
xenbus_probe_frontend.c | ||
xenbus_probe.c | ||
xenbus_xs.c | ||
xenbus.h |