Restart camera service
If the problem is in the kernel driver, as t0mm13b suggests, then only resetting the kernel driver will help. There might be a hacky way to achieve this with rmmod from the command line, if the device is rooted and that driver was built as a module in that ROM. I wouldn't recommend it. Restarting the phone is probably the only way to reset the driver.