[Xen-devel] [PATCH 03/32] lm832x: don't overrun file buffer on save/restore

2015-04-22 Thread Andrew Cooper
Saving and restoring an lm832x record would overrun the pwm.file array since pwm.file is uint16_t elements and sizeof(pwm.file) twice as many elements. To ensure compatibility, padding bytes are added to the record. Signed-off-by: Andrew Cooper andrew.coop...@citrix.com Coverity-IDs: 1055728

[Xen-devel] [PATCH 03/32] lm832x: don't overrun file buffer on save/restore

2015-04-22 Thread Andrew Cooper
Saving and restoring an lm832x record would overrun the pwm.file array since pwm.file is uint16_t elements and sizeof(pwm.file) twice as many elements. To ensure compatibility, padding bytes are added to the record. Signed-off-by: Andrew Cooper andrew.coop...@citrix.com Coverity-IDs: 1055728