[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110705080855.64fda748@bike.lwn.net>
Date: Tue, 5 Jul 2011 08:08:55 -0600
From: Jonathan Corbet <corbet@....net>
To: Jesper Juhl <jj@...osbits.net>
Cc: linux-kernel@...r.kernel.org, linux-media@...r.kernel.org,
Mauro Carvalho Chehab <mchehab@...radead.org>
Subject: Re: [PATCH] viacam: Don't explode if pci_find_bus() returns NULL
On Sun, 3 Jul 2011 09:54:12 +0200 (CEST)
Jesper Juhl <jj@...osbits.net> wrote:
> In the unlikely case that pci_find_bus() should return NULL
> viacam_serial_is_enabled() is going to dereference a NULL pointer and
> blow up. Better safe than sorry, so be defensive and check the
> pointer.
Extremely unlikely - that function is only called on a single architecture
where the bus is known to exist. Still, no harm can come from checking.
Acked-by: Jonathan Corbet <corbet@....net>
Thanks,
jon
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists