devices: break after finding and removing device from lists

Coverity complains about a use after free in here after the
freeing, I can't follow the linked list so well, but whot
says the device can only be on one list once, so break should
fix it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
1 job for coverity-fixes in 7 minutes and 2 seconds (queued for 3 seconds)
Status Name Job ID Coverage
  Test
passed job #23005

00:07:02