*new* bogus_irqrestore: don't restore irq state before saving it
commit8feef1566cc2a5f88d2c67081d6f512311c70d19
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 15 Dec 2011 08:01:23 +0000 (15 11:01 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 15 Dec 2011 08:01:23 +0000 (15 11:01 +0300)
tree1781275187677d74e35f38f7f28a77fe49c5eda0
parent9743876c404ff4c64066268e9a4158305ad3d42c
*new* bogus_irqrestore: don't restore irq state before saving it

There are some places which do this:

unsigned long flags = 0;

spin_lock_irqrestore(lock, flags);
foo_bar();
spin_lock_irqsave(lock, flags);

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_bogus_irqrestore.c [new file with mode: 0644]
check_list.h