Commit a13265af99c8c10c61b7713d62d8d163fbf30a94

Authored by Mike Frysinger
1 parent 1ae9ab17e7

Blackfin: fix typo in hweight asm

Run ONES on the incoming value rather than random garbage.  This fixes
random crashes with some networking code.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/blackfin/include/asm/bitops.h
... ... @@ -119,7 +119,7 @@
119 119 {
120 120 unsigned int res;
121 121  
122   - __asm__ ("%0.l = ONES %0;"
  122 + __asm__ ("%0.l = ONES %1;"
123 123 "%0 = %0.l (Z);"
124 124 : "=d" (res) : "d" (w));
125 125 return res;