Merge branch 'master' of goat:git/vdummy
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Tue, 16 May 2017 06:08:07 +0000 (09:08 +0300)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Tue, 16 May 2017 06:08:07 +0000 (09:08 +0300)
1  2 
vdummy.c

diff --cc vdummy.c
+++ b/vdummy.c
@@@ -411,10 -414,9 +424,11 @@@ static int update_frame(int xsz, int ys
  static int gen_frame(void)
  {
        struct buffer *buf = 0;
+       unsigned long flags;
  
 +      printk(KERN_INFO "vdummy: gen_frame\n");
 +
-       spin_lock(&blist_lock);
+       spin_lock_irqsave(&blist_lock, flags);
        if(buflist) {
                buf = buflist;
                buflist = buflist->next;