summaryrefslogtreecommitdiff
path: root/screen.c
blob: 34b27f3cca1da47c576ae746bbf3a7f17de22916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <curses.h>

#include "screen.h"

WINDOW *screen_init(bool israw)
{
	WINDOW *screen = initscr();

	if (israw)
		raw();
	noecho();
	cbreak();
	nodelay(screen, TRUE);
	keypad(stdscr, TRUE);
	refresh();
	wrefresh(screen);

	return screen;
}

void screen_end(void)
{
	endwin();
}
/td>2016-10-31 16:05:32 -0400 commit87557efc27f6a50140fb20df06a917f368ce3c66 (patch) tree655648d282d40aac011d0adfa08ef362c97bde05 parentdf67e97a2848a1517d010470b8b4f3344ae41f02 (diff)
xen-netfront: do not cast grant table reference to signed short
While grant reference is of type uint32_t, xen-netfront erroneously casts it to signed short in BUG_ON(). This would lead to the xen domU panic during boot-up or migration when it is attached with lots of paravirtual devices. Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat