Fix CID 1343302 by adding checking a check on the value of reg_shift.
This patch also rolls the multiplication by 8 into the shift.
No functional changes.
Suggested-by: Jan Beulich
Signed-off-by: Chester Lin
---
xen/drivers/char/ns16550.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion
.
Additionally, change the error log statement to more accurately reflect
the failure. This is the only functional change introduced by this
patch.
Suggested-by: Ian Campbell
Signed-off-by: Chester Lin
---
Now storing the return of xc_sched_id in an int as per
On Mon, 2016-01-04 at 16:23 +
, and make a note of
the interpretation of the return value in libxl.h. N.B. This change
breaks neither the API nor the ABI of libxl.
Suggested-by: Ian Campbell
Signed-off-by: Chester Lin
---
Changed return type of libxl_get_scheduler in order to return both negative
error constants and positive
This change adds an explicit cast to fix the
Coverity warning, and tweaks the surrounding code to more closely
conform to the guidelines in CODING_STYLE.
No functional changes.
Signed-off-by: Chester Lin
---
Changed commit message to say that the enums are identical
---
tools/libxl/libxl_psr.c
.
Additionally, change the error log statement to more accurately reflect
the failure. This is the only functional change introduced by this
patch.
Suggested-by: Ian Campbell
Signed-off-by: Chester Lin
Reviewed-by: Dario Faggioli
---
Now storing the return of xc_sched_id in an int as per
On
Signed-off-by: Chester Lin
Reviewed-by: Dario Faggioli
---
Changed return type of libxl_get_scheduler in order to return both negative
error constants and positive scheduler values.
---
tools/libxl/libxl.c | 5 ++---
tools/libxl/libxl.h | 5 -
2 files changed, 6 insertions(+), 4 deletions