summaryrefslogtreecommitdiffstats
path: root/mm/memory.c
diff options
context:
space:
mode:
authorChristian Gmeiner2011-06-16 00:08:22 +0200
committerLinus Torvalds2011-06-16 05:04:00 +0200
commit4bbd61fb9726808e72ab2aa440401f6e5e1aa8f7 (patch)
tree334f2327d82f065b20d71a66c4133399cce263b1 /mm/memory.c
parentdrivers/misc/spear13xx_pcie_gadget.c: fix a memory leak in spear_pcie_gadget_... (diff)
downloadkernel-qcow2-linux-4bbd61fb9726808e72ab2aa440401f6e5e1aa8f7.tar.gz
kernel-qcow2-linux-4bbd61fb9726808e72ab2aa440401f6e5e1aa8f7.tar.xz
kernel-qcow2-linux-4bbd61fb9726808e72ab2aa440401f6e5e1aa8f7.zip
drivers/misc/cs5535-mfgpt.c: fix wrong if condition
Fix the wrong `if' condition for the check if the requested timer is available. The bitmap avail is used to store if a timer is used already. test_bit() is used to check if the requested timer is available. If a bit in the avail bitmap is set it means that the timer is available. The runtime effect would be that allocating a specific timer always fails (versus telling cs5535_mfgpt_alloc_timer to allocate the first available timer, which works). Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Acked-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions