All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] nvram: at24c: fix problems related to "rom-size"
@ 2018-03-19 21:30 ` Wolfram Sang
  0 siblings, 0 replies; 20+ messages in thread
From: Wolfram Sang @ 2018-03-19 21:30 UTC (permalink / raw)
  To: qemu-devel; +Cc: Philippe Mathieu-Daudé, linux-renesas-soc, Wolfram Sang

I used this driver as a template for a custom one. While hacking on my own, I
noticed some problems in this driver, too. This series fixes the first set of
them, related to the "rom-size" parameter. It fixes a segfault.

I think the first patch is clearly suitable for stable. I think the second one,
too, but not as clearly. The third one is a cleanup and not for stable. Still,
I am open for opinions about these thoughts.

Thanks,

   Wolfram

Changes since v1:

* reordered patches according to significance for stable
* use AT24C_ROMSIZE_DEFAULT instead of magic value
* patch 3 doesn't improve the ERR macro anymore but replaces
  it completely with error_report().


Wolfram Sang (3):
  nvram: at24c: prevent segfault by checking "rom-size"
  nvram: at24c: use a sane default for "rom-size"
  nvram: at24c: use standard error reporting

 hw/nvram/eeprom_at24c.c | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2018-03-20 11:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-19 21:30 [PATCH v2 0/3] nvram: at24c: fix problems related to "rom-size" Wolfram Sang
2018-03-19 21:30 ` [Qemu-devel] " Wolfram Sang
2018-03-19 21:30 ` [PATCH v2 1/3] nvram: at24c: prevent segfault by checking "rom-size" Wolfram Sang
2018-03-19 21:30   ` [Qemu-devel] " Wolfram Sang
2018-03-20  0:48   ` Philippe Mathieu-Daudé
2018-03-20  0:48     ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-03-20 11:07     ` Wolfram Sang
2018-03-20 11:07       ` [Qemu-devel] " Wolfram Sang
2018-03-19 21:31 ` [PATCH v2 2/3] nvram: at24c: use a sane default for "rom-size" Wolfram Sang
2018-03-19 21:31   ` [Qemu-devel] " Wolfram Sang
2018-03-20  0:45   ` Philippe Mathieu-Daudé
2018-03-20  0:45     ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-03-19 21:31 ` [PATCH v2 3/3] nvram: at24c: use standard error reporting Wolfram Sang
2018-03-19 21:31   ` [Qemu-devel] " Wolfram Sang
2018-03-19 21:51   ` Eric Blake
2018-03-19 22:07     ` Wolfram Sang
2018-03-20  0:49   ` Philippe Mathieu-Daudé
2018-03-20  0:49     ` [Qemu-devel] " Philippe Mathieu-Daudé
2018-03-19 21:52 ` [Qemu-devel] [PATCH v2 0/3] nvram: at24c: fix problems related to "rom-size" no-reply
2018-03-19 21:52   ` no-reply

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.