tty: vt: sanitize consw::con_putcs() parameters
[sfrench/cifs-2.6.git] / include / linux / console.h
index 92d57e5b30097625fe33011fd5968924d32ec039..82d55764a66f8a100d02bdb8aa9da129e67d2e17 100644 (file)
@@ -41,6 +41,7 @@ enum vc_intensity;
  * @con_clear:  erase @count characters at [@x, @y] on @vc. @count >= 1.
  * @con_putc:   emit one character with attributes @ca to [@x, @y] on @vc.
  *             (optional -- @con_putcs would be called instead)
+ * @con_putcs:  emit @count characters with attributes @s to [@x, @y] on @vc.
  * @con_scroll: move lines from @top to @bottom in direction @dir by @lines.
  *             Return true if no generic handling should be done.
  *             Invoked by csi_M and printing to the console.
@@ -57,8 +58,9 @@ struct consw {
                             unsigned int x, unsigned int count);
        void    (*con_putc)(struct vc_data *vc, u16 ca, unsigned int y,
                            unsigned int x);
-       void    (*con_putcs)(struct vc_data *vc, const unsigned short *s,
-                       int count, int ypos, int xpos);
+       void    (*con_putcs)(struct vc_data *vc, const u16 *s,
+                            unsigned int count, unsigned int ypos,
+                            unsigned int xpos);
        void    (*con_cursor)(struct vc_data *vc, int mode);
        bool    (*con_scroll)(struct vc_data *vc, unsigned int top,
                        unsigned int bottom, enum con_scroll dir,