lkml.org 
[lkml]   [2003]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subjectvt.c in 2.5.65-ac1
    Hi,
    I have a aquestion about patch in patch-2.5.65-ac1 for vt.c.
    Here is a extracted patch from patch-2.5.65-ac1.
    I think it's no need for 2.5.65.

    Regards,
    Osamu Tomita

    diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.65/drivers/char/vt.c linux-2.5.65-ac1/drivers/char/vt.c
    --- linux-2.5.65/drivers/char/vt.c 2003-03-18 16:46:47.000000000 +0000
    +++ linux-2.5.65-ac1/drivers/char/vt.c 2003-03-18 16:58:38.000000000 +0000
    @@ -732,6 +732,12 @@
    if (new_cols == video_num_columns && new_rows == video_num_lines)
    return 0;

    + err = resize_screen(currcons, new_cols, new_rows);
    + if (err) {
    + kfree(newscreen);
    + return err;
    + }
    +
    newscreen = (unsigned short *) kmalloc(new_screen_size, GFP_USER);
    if (!newscreen)
    return -ENOMEM;
    @@ -746,12 +752,6 @@
    video_size_row = new_row_size;
    screenbuf_size = new_screen_size;

    - err = resize_screen(currcons, new_cols, new_rows);
    - if (err) {
    - kfree(newscreen);
    - return err;
    - }
    -
    rlth = min(old_row_size, new_row_size);
    rrem = new_row_size - rlth;
    old_origin = origin;
    @@ -2445,7 +2445,7 @@
    struct tty_driver console_driver;
    static int console_refcount;

    -static int __init con_init(void)
    +static void __init con_init(void)
    {
    const char *display_desc = NULL;
    unsigned int currcons = 0;
    @@ -2493,7 +2493,6 @@
    #ifdef CONFIG_VT_CONSOLE
    register_console(&vt_console_driver);
    #endif
    - return 0;
    }
    console_initcall(con_init);

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:34    [W:0.019 / U:182.748 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site