* [PATCH] stable: uio: Fix warning: 'ret' might be used uninitialized [not found] ` <20121130234331.GD17353@kroah.com> @ 2012-12-03 7:41 ` Hans J. Koch 2012-12-03 13:38 ` Ben Hutchings 0 siblings, 1 reply; 2+ messages in thread From: Hans J. Koch @ 2012-12-03 7:41 UTC (permalink / raw) To: Greg Kroah-Hartman Cc: Hans J. Koch, Vitalii Demianets, Tux9, linux-kernel, stable In two cases, the return value variable "ret" can be undefined. Signed-off-by: Hans J. Koch <hjk@hansjkoch.de> Reported-by: Vitalii Demianets <vitas@nppfactor.kiev.ua> --- drivers/uio/uio.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index 5110f36..0c80df2 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -273,6 +273,7 @@ static int uio_dev_add_attributes(struct uio_device *idev) struct uio_portio *portio; for (mi = 0; mi < MAX_UIO_MAPS; mi++) { + ret = -ENOMEM; mem = &idev->info->mem[mi]; if (mem->size == 0) break; @@ -298,6 +299,7 @@ static int uio_dev_add_attributes(struct uio_device *idev) } for (pi = 0; pi < MAX_UIO_PORT_REGIONS; pi++) { + ret = -ENOMEM; port = &idev->info->port[pi]; if (port->size == 0) break; -- 1.7.9 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] stable: uio: Fix warning: 'ret' might be used uninitialized 2012-12-03 7:41 ` [PATCH] stable: uio: Fix warning: 'ret' might be used uninitialized Hans J. Koch @ 2012-12-03 13:38 ` Ben Hutchings 0 siblings, 0 replies; 2+ messages in thread From: Ben Hutchings @ 2012-12-03 13:38 UTC (permalink / raw) To: Hans J. Koch Cc: Greg Kroah-Hartman, Vitalii Demianets, Tux9, linux-kernel, stable [-- Attachment #1: Type: text/plain, Size: 458 bytes --] On Mon, 2012-12-03 at 08:41 +0100, Hans J. Koch wrote: > In two cases, the return value variable "ret" can be undefined. > > Signed-off-by: Hans J. Koch <hjk@hansjkoch.de> > Reported-by: Vitalii Demianets <vitas@nppfactor.kiev.ua> [...] This is not the correct way to submit patches to stable. See Documentation/stable_kernel_rules.txt Ben. -- Ben Hutchings Always try to do things in chronological order; it's less confusing that way. [-- Attachment #2: This is a digitally signed message part --] [-- Type: application/pgp-signature, Size: 828 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-03 13:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201211271348.14603.vitas@nppfactor.kiev.ua>
[not found] ` <201211291836.59358.vitas@nppfactor.kiev.ua>
[not found] ` <20121129235822.GA2590@local>
[not found] ` <201211301316.19217.vitas@nppfactor.kiev.ua>
[not found] ` <20121130213906.GB2603@local>
[not found] ` <20121130234331.GD17353@kroah.com>
2012-12-03 7:41 ` [PATCH] stable: uio: Fix warning: 'ret' might be used uninitialized Hans J. Koch
2012-12-03 13:38 ` Ben Hutchings
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox