X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fchar%2Fhvc_vio.c;h=bd62dc86b47d09148f7ee80932031d8b7ecf5fe5;hb=2702e0a46c2d28da92b32c9b068ee1291fc0de35;hp=019e0b58593da4f2356ef3725d03cd7f186ed1ad;hpb=1d63e726408dfdb3e10ed8f00c383b30ebb333d3;p=linux-2.6-omap-h63xx.git diff --git a/drivers/char/hvc_vio.c b/drivers/char/hvc_vio.c index 019e0b58593..bd62dc86b47 100644 --- a/drivers/char/hvc_vio.c +++ b/drivers/char/hvc_vio.c @@ -153,8 +153,10 @@ static int hvc_find_vtys(void) /* We have statically defined space for only a certain number * of console adapters. */ - if (num_found >= MAX_NR_HVC_CONSOLES) + if (num_found >= MAX_NR_HVC_CONSOLES) { + of_node_put(vty); break; + } vtermno = of_get_property(vty, "reg", NULL); if (!vtermno)