Re: [libvirt] [PATCH] virnetdev: fix moving of 802.11 phys

2015-06-03 Thread Michal Privoznik
On 01.06.2015 20:40, Lubomir Rintel wrote: There was a couple of problems with the style fixes applied to the original patch: 1.) virFileReadAllQuiet comparison was incorrectly parenthesized when moved into a condition, causing the len to be set to the result of comparison. This, together

[libvirt] [PATCH] virnetdev: fix moving of 802.11 phys

2015-06-01 Thread Lubomir Rintel
There was a couple of problems with the style fixes applied to the original patch: 1.) virFileReadAllQuiet comparison was incorrectly parenthesized when moved into a condition, causing the len to be set to the result of comparison. This, together with the removed underflow check would underflow