fireworks: Fix memory leak for resp_buf
fireworks: fix bugs according to smatch analysis

1.Buffer overrun because of sizeof() instead of ARRAY_SIZE()
2.Wrong logical operator instead of bitwise operator
3.Wrong flags over bit width