X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fchar%2Fhvc_vio.c;h=bd62dc86b47d09148f7ee80932031d8b7ecf5fe5;hb=f3b8436ad9a8ad36b3c9fa1fe030c7f38e5d3d0b;hp=019e0b58593da4f2356ef3725d03cd7f186ed1ad;hpb=ef71b1b87521ff93ed77b3e8f3e149afb392761c;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)