search for: bea3cfb88e53

Displaying 8 results from an estimated 8 matches for "bea3cfb88e53".

2017 Mar 24
2
[PATCH] virtio_balloon: prevent uninitialized variable use
...f that's the right > solution. I think that's out of spec. > Another option would be to return 'idx' from update_balloon_stats, > and use that for the size: > > diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c > index cd5c54e2003d..bea3cfb88e53 100644 > --- a/drivers/virtio/virtio_balloon.c > +++ b/drivers/virtio/virtio_balloon.c > @@ -242,7 +242,7 @@ static inline void update_stat(struct > virtio_balloon *vb, int idx, > > #define pages_to_bytes(x) ((u64)(x) << PAGE_SHIFT) > > -static void update_balloon_s...
2017 Mar 24
2
[PATCH] virtio_balloon: prevent uninitialized variable use
...f that's the right > solution. I think that's out of spec. > Another option would be to return 'idx' from update_balloon_stats, > and use that for the size: > > diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c > index cd5c54e2003d..bea3cfb88e53 100644 > --- a/drivers/virtio/virtio_balloon.c > +++ b/drivers/virtio/virtio_balloon.c > @@ -242,7 +242,7 @@ static inline void update_stat(struct > virtio_balloon *vb, int idx, > > #define pages_to_bytes(x) ((u64)(x) << PAGE_SHIFT) > > -static void update_balloon_s...
2017 Mar 28
1
[PATCH] virtio_balloon: prevent uninitialized variable use
...#39;s out of spec. > > > >> Another option would be to return 'idx' from update_balloon_stats, > >> and use that for the size: > >> > >> diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c > >> index cd5c54e2003d..bea3cfb88e53 100644 > >> --- a/drivers/virtio/virtio_balloon.c > >> +++ b/drivers/virtio/virtio_balloon.c > >> @@ -242,7 +242,7 @@ static inline void update_stat(struct > >> virtio_balloon *vb, int idx, > >> > >> #define pages_to_bytes(x) ((u64)(x) <<...
2017 Mar 28
1
[PATCH] virtio_balloon: prevent uninitialized variable use
...#39;s out of spec. > > > >> Another option would be to return 'idx' from update_balloon_stats, > >> and use that for the size: > >> > >> diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c > >> index cd5c54e2003d..bea3cfb88e53 100644 > >> --- a/drivers/virtio/virtio_balloon.c > >> +++ b/drivers/virtio/virtio_balloon.c > >> @@ -242,7 +242,7 @@ static inline void update_stat(struct > >> virtio_balloon *vb, int idx, > >> > >> #define pages_to_bytes(x) ((u64)(x) <<...
2017 Mar 24
2
[PATCH] virtio_balloon: prevent uninitialized variable use
On Fri, Mar 24, 2017 at 7:38 PM, David Hildenbrand <david at redhat.com> wrote: > On 23.03.2017 16:17, Arnd Bergmann wrote: >> The latest gcc-7.0.1 snapshot reports a new warning: >> >> virtio/virtio_balloon.c: In function 'update_balloon_stats': >> virtio/virtio_balloon.c:258:26: error: 'events[2]' is used uninitialized in this function
2017 Mar 24
2
[PATCH] virtio_balloon: prevent uninitialized variable use
On Fri, Mar 24, 2017 at 7:38 PM, David Hildenbrand <david at redhat.com> wrote: > On 23.03.2017 16:17, Arnd Bergmann wrote: >> The latest gcc-7.0.1 snapshot reports a new warning: >> >> virtio/virtio_balloon.c: In function 'update_balloon_stats': >> virtio/virtio_balloon.c:258:26: error: 'events[2]' is used uninitialized in this function
2017 Mar 24
0
[PATCH] virtio_balloon: prevent uninitialized variable use
...ents array and return zeroes to the host, but I don't know if that's the right solution. Another option would be to return 'idx' from update_balloon_stats, and use that for the size: diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index cd5c54e2003d..bea3cfb88e53 100644 --- a/drivers/virtio/virtio_balloon.c +++ b/drivers/virtio/virtio_balloon.c @@ -242,7 +242,7 @@ static inline void update_stat(struct virtio_balloon *vb, int idx, #define pages_to_bytes(x) ((u64)(x) << PAGE_SHIFT) -static void update_balloon_stats(struct virtio_balloon *vb) +static...
2017 Mar 27
0
[PATCH] virtio_balloon: prevent uninitialized variable use
.... > > > I think that's out of spec. > >> Another option would be to return 'idx' from update_balloon_stats, >> and use that for the size: >> >> diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c >> index cd5c54e2003d..bea3cfb88e53 100644 >> --- a/drivers/virtio/virtio_balloon.c >> +++ b/drivers/virtio/virtio_balloon.c >> @@ -242,7 +242,7 @@ static inline void update_stat(struct >> virtio_balloon *vb, int idx, >> >> #define pages_to_bytes(x) ((u64)(x) << PAGE_SHIFT) >> >>...