mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 00/14] Smatch warning fixups
@ 2014-02-07  8:48 Lucas Stach
  2014-02-07  8:48 ` [PATCH 01/14] remove redundant NULL check on free Lucas Stach
                   ` (14 more replies)
  0 siblings, 15 replies; 18+ messages in thread
From: Lucas Stach @ 2014-02-07  8:48 UTC (permalink / raw)
  To: barebox

I've run smatch over a imx_v7_defconfig build
and fixed the resulting warnings.

Some of them are just minor issues with no
real impact, but some of them are real potential
problems or even real bugs.

Lucas Stach (14):
  remove redundant NULL check on free
  commands: edit: properly propagate error code
  common: env: properly propagate error code
  clk: imx: unsigned mfn is never less than zero
  lib: math: fix return path (numstack may be NULL)
  lib: libbb: f should never be NULL
  comamnds: uimage: actually print error message
  usb: ulpi: fix logic-op
  usb: dfu: fix error path to avoid NULL ptr deref
  net: usb: smsc95xx: fix wrong phy reset condition
  net: usb: asix: properly propagate error code
  mtd: core: avoid possible NULL ptr deref
  clk: avoid possible NULL ptr deref
  don't cast negative error codes to unsigned size_t

 arch/arm/mach-imx/clk-pllv1.c | 2 --
 commands/edit.c               | 2 +-
 commands/uimage.c             | 2 +-
 common/environment.c          | 5 ++---
 common/uimage.c               | 6 +++---
 drivers/clk/clkdev.c          | 8 +++++---
 drivers/eeprom/at25.c         | 3 +--
 drivers/mtd/core.c            | 3 ++-
 drivers/net/usb/asix.c        | 4 ++--
 drivers/net/usb/smsc95xx.c    | 2 +-
 drivers/usb/core/usb.c        | 3 +--
 drivers/usb/gadget/dfu.c      | 4 +++-
 drivers/usb/otg/ulpi.c        | 4 ++--
 include/image.h               | 2 +-
 lib/libbb.c                   | 2 +-
 lib/math.c                    | 4 ++--
 lib/parameter.c               | 3 +--
 net/eth.c                     | 2 +-
 18 files changed, 30 insertions(+), 31 deletions(-)

-- 
1.8.5.3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2014-02-10  7:51 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-07  8:48 [PATCH 00/14] Smatch warning fixups Lucas Stach
2014-02-07  8:48 ` [PATCH 01/14] remove redundant NULL check on free Lucas Stach
2014-02-07  8:48 ` [PATCH 02/14] commands: edit: properly propagate error code Lucas Stach
2014-02-07  8:48 ` [PATCH 03/14] common: env: " Lucas Stach
2014-02-07  8:48 ` [PATCH 04/14] clk: imx: unsigned mfn is never less than zero Lucas Stach
2014-02-07  8:48 ` [PATCH 05/14] lib: math: fix return path (numstack may be NULL) Lucas Stach
2014-02-07  8:48 ` [PATCH 06/14] lib: libbb: f should never be NULL Lucas Stach
2014-02-07  8:48 ` [PATCH 07/14] comamnds: uimage: actually print error message Lucas Stach
2014-02-07  9:22   ` Uwe Kleine-König
2014-02-07  8:48 ` [PATCH 08/14] usb: ulpi: fix logic-op Lucas Stach
2014-02-07  8:48 ` [PATCH 09/14] usb: dfu: fix error path to avoid NULL ptr deref Lucas Stach
2014-02-07  8:48 ` [PATCH 10/14] net: usb: smsc95xx: fix wrong phy reset condition Lucas Stach
2014-02-07  8:48 ` [PATCH 11/14] net: usb: asix: properly propagate error code Lucas Stach
2014-02-07  8:48 ` [PATCH 12/14] mtd: core: avoid possible NULL ptr deref Lucas Stach
2014-02-07  8:48 ` [PATCH 13/14] clk: " Lucas Stach
2014-02-07  8:48 ` [PATCH 14/14] don't cast negative error codes to unsigned size_t Lucas Stach
2014-02-07  9:17   ` Juergen Beisert
2014-02-10  7:51 ` [PATCH 00/14] Smatch warning fixups Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox