File kernel-3.14.patch of Package ndiswrapper

Description: Kernel 3.14 changes

================================================================================
--- ndiswrapper-1.59/driver/crt.c
+++ ndiswrapper-1.59/driver/crt.c
@@ -467,7 +467,7 @@
 noregparm void WIN_FUNC(_win_srand,1)
 	(UINT seed)
 {
-	net_srandom(seed);
+	prandom_seed((__force u32)(seed));
 }
 
 noregparm int WIN_FUNC(rand,0)
--- ndiswrapper-1.59/driver/ntoskernel.h
+++ ndiswrapper-1.59/driver/ntoskernel.h
@@ -799,9 +799,8 @@
 #define nt_spin_unlock_irqrestore(lock, flags)				\
 do {									\
 	nt_spin_unlock(lock);						\
-	preempt_enable_no_resched();					\
+	preempt_enable();					\
 	local_irq_restore(flags);					\
-	preempt_check_resched();					\
 } while (0)
 
 static inline ULONG SPAN_PAGES(void *ptr, SIZE_T length)
openSUSE Build Service is sponsored by